Skip to content

Commit 5e1b382

Browse files
committed
Added deleteMyCommands method
1 parent 47df8f5 commit 5e1b382

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Request.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
* @method static ServerResponse answerCallbackQuery(array $data) Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned.
8282
* @method static ServerResponse answerInlineQuery(array $data) Use this method to send answers to an inline query. On success, True is returned.
8383
* @method static ServerResponse setMyCommands(array $data) Use this method to change the list of the bot's commands. Returns True on success.
84+
* @method static ServerResponse deleteMyCommands(array $data) Use this method to delete the list of the bot's commands for the given scope and user language. After deletion, higher level commands will be shown to affected users. Returns True on success.
8485
* @method static ServerResponse getMyCommands() Use this method to get the current list of the bot's commands. Requires no parameters. Returns Array of BotCommand on success.
8586
* @method static ServerResponse editMessageText(array $data) Use this method to edit text and game messages sent by the bot or via the bot (for inline bots). On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
8687
* @method static ServerResponse editMessageCaption(array $data) Use this method to edit captions of messages sent by the bot or via the bot (for inline bots). On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
@@ -220,6 +221,7 @@ class Request
220221
'answerCallbackQuery',
221222
'answerInlineQuery',
222223
'setMyCommands',
224+
'deleteMyCommands',
223225
'getMyCommands',
224226
'editMessageText',
225227
'editMessageCaption',
@@ -868,6 +870,7 @@ private static function limitTelegramRequests(string $action, array $data = []):
868870
'sendGame',
869871
'setGameScore',
870872
'setMyCommands',
873+
'deleteMyCommands',
871874
'editMessageText',
872875
'editMessageCaption',
873876
'editMessageMedia',

0 commit comments

Comments
 (0)