Add RestrictChatMember method to bot library

This commit is contained in:
netkas 2024-11-05 21:22:33 -05:00
parent 2377b239f3
commit 8119e791e4
2 changed files with 55 additions and 0 deletions

View file

@ -18,6 +18,7 @@
use TgBotLib\Methods\GetUserProfilePhotos;
use TgBotLib\Methods\GetWebhookInfo;
use TgBotLib\Methods\Logout;
use TgBotLib\Methods\RestrictChatMember;
use TgBotLib\Methods\SendAnimation;
use TgBotLib\Methods\SendAudio;
use TgBotLib\Methods\SendChatAction;
@ -72,6 +73,7 @@
case GET_FILE = 'getFile';
case BAN_CHAT_MEMBER = 'banChatMember';
case UNBAN_CHAT_MEMBER = 'unbanChatMember';
case RESTRICT_CHAT_MEMBER = 'restrictChatMember';
/**
* Executes a command on the provided bot with the given parameters.
@ -117,6 +119,7 @@
self::GET_FILE => GetFile::execute($bot, $parameters),
self::BAN_CHAT_MEMBER => BanChatMember::execute($bot, $parameters),
self::UNBAN_CHAT_MEMBER => UnbanChatMember::execute($bot, $parameters),
self::RESTRICT_CHAT_MEMBER => RestrictChatMember::execute($bot, $parameters),
};
}
}