Add support for sending documents

This commit is contained in:
netkas 2024-10-08 13:58:22 -04:00
parent 3623b63eaa
commit dc9ca57e52
5 changed files with 182 additions and 0 deletions

View file

@ -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),
};
}
}