Add UnbanChatMember method to TgBotLib
This commit is contained in:
parent
9e2e19d593
commit
2377b239f3
2 changed files with 37 additions and 0 deletions
|
@ -36,6 +36,7 @@
|
|||
use TgBotLib\Methods\SendVoice;
|
||||
use TgBotLib\Methods\SetMessageReaction;
|
||||
use TgBotLib\Methods\SetWebhook;
|
||||
use TgBotLib\Methods\UnbanChatMember;
|
||||
|
||||
enum Methods : string
|
||||
{
|
||||
|
@ -70,6 +71,7 @@
|
|||
case GET_USER_PROFILE_PHOTOS = 'getUserProfilePhotos';
|
||||
case GET_FILE = 'getFile';
|
||||
case BAN_CHAT_MEMBER = 'banChatMember';
|
||||
case UNBAN_CHAT_MEMBER = 'unbanChatMember';
|
||||
|
||||
/**
|
||||
* Executes a command on the provided bot with the given parameters.
|
||||
|
@ -114,6 +116,7 @@
|
|||
self::GET_USER_PROFILE_PHOTOS => GetUserProfilePhotos::execute($bot, $parameters),
|
||||
self::GET_FILE => GetFile::execute($bot, $parameters),
|
||||
self::BAN_CHAT_MEMBER => BanChatMember::execute($bot, $parameters),
|
||||
self::UNBAN_CHAT_MEMBER => UnbanChatMember::execute($bot, $parameters),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
34
src/TgBotLib/Methods/UnbanChatMember.php
Normal file
34
src/TgBotLib/Methods/UnbanChatMember.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Methods;
|
||||
|
||||
use TgBotLib\Abstracts\Method;
|
||||
use TgBotLib\Bot;
|
||||
|
||||
class UnbanChatMember extends Method
|
||||
{
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public static function execute(Bot $bot, array $parameters = []): mixed
|
||||
{
|
||||
// TODO: Implement execute() method.
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public static function getRequiredParameters(): ?array
|
||||
{
|
||||
// TODO: Implement getRequiredParameters() method.
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public static function getOptionalParameters(): ?array
|
||||
{
|
||||
// TODO: Implement getOptionalParameters() method.
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue