Add support for sending documents
This commit is contained in:
parent
3623b63eaa
commit
dc9ca57e52
5 changed files with 182 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
use TgBotLib\Methods\GetMe;
|
||||
use TgBotLib\Methods\Logout;
|
||||
use TgBotLib\Methods\SendAudio;
|
||||
use TgBotLib\Methods\SendDocument;
|
||||
use TgBotLib\Methods\SendMessage;
|
||||
use TgBotLib\Methods\SendPhoto;
|
||||
|
||||
|
@ -28,6 +29,7 @@
|
|||
case COPY_MESSAGES = 'copyMessages';
|
||||
case SEND_PHOTO = 'sendPhoto';
|
||||
case SEND_AUDIO = 'sendAudio';
|
||||
case SEND_DOCUMENT = 'sendDocument';
|
||||
|
||||
/**
|
||||
* Executes a command on the provided bot with the given parameters.
|
||||
|
@ -51,6 +53,7 @@
|
|||
self::COPY_MESSAGES => CopyMessages::execute($bot, $parameters),
|
||||
self::SEND_PHOTO => SendPhoto::execute($bot, $parameters),
|
||||
self::SEND_AUDIO => SendAudio::execute($bot, $parameters),
|
||||
self::SEND_DOCUMENT => SendDocument::execute($bot, $parameters),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue