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),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue