Implemented method sendChatAction
This commit is contained in:
parent
97346e217c
commit
ead1347f34
4 changed files with 179 additions and 3 deletions
|
@ -14,6 +14,7 @@
|
|||
use TgBotLib\Methods\Logout;
|
||||
use TgBotLib\Methods\SendAnimation;
|
||||
use TgBotLib\Methods\SendAudio;
|
||||
use TgBotLib\Methods\SendChatAction;
|
||||
use TgBotLib\Methods\SendContact;
|
||||
use TgBotLib\Methods\SendDice;
|
||||
use TgBotLib\Methods\SendDocument;
|
||||
|
@ -52,6 +53,7 @@
|
|||
case SEND_CONTACT = 'sendContact';
|
||||
case SEND_POLL = 'sendPoll';
|
||||
case SEND_DICE = 'sendDice';
|
||||
case SEND_CHAT_ACTION = 'sendChatAction';
|
||||
|
||||
/**
|
||||
* Executes a command on the provided bot with the given parameters.
|
||||
|
@ -87,6 +89,7 @@
|
|||
self::SEND_CONTACT => SendContact::execute($bot, $parameters),
|
||||
self::SEND_POLL => SendPoll::execute($bot, $parameters),
|
||||
self::SEND_DICE => SendDice::execute($bot, $parameters),
|
||||
self::SEND_CHAT_ACTION => SendChatAction::execute($bot, $parameters)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,9 +8,8 @@
|
|||
case UPLOAD_PHOTO = 'upload_photo';
|
||||
case RECORD_VIDEO = 'record_video';
|
||||
case UPLOAD_VIDEO = 'upload_video';
|
||||
case RECORD_AUDIO = 'record_audio';
|
||||
case UPLOAD_AUDIO = 'upload_audio';
|
||||
case UPLOAD_DOCUMENT = 'upload_document';
|
||||
case RECORD_VOICE = 'record_voice';
|
||||
case CHOOSE_STICKER = 'choose_sticker';
|
||||
case FIND_LOCATION = 'find_location';
|
||||
case RECORD_VIDEO_NOTE = 'record_video_note';
|
||||
case UPLOAD_VIDEO_NOTE = 'upload_video_note';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue