Added SendVideoNote method

This commit is contained in:
netkas 2024-10-09 15:10:32 -04:00
parent 5d1b07c4c4
commit 27ffc3408d
2 changed files with 108 additions and 0 deletions

View file

@ -18,6 +18,7 @@
use TgBotLib\Methods\SendMessage;
use TgBotLib\Methods\SendPhoto;
use TgBotLib\Methods\SendVideo;
use TgBotLib\Methods\SendVideoNote;
use TgBotLib\Methods\SendVoice;
enum Methods : string
@ -36,6 +37,7 @@
case SEND_VIDEO = 'sendVideo';
case SEND_ANIMATION = 'sendAnimation';
case SEND_VOICE = 'sendVoice';
case SEND_VIDEO_NOTE = 'sendVideoNote';
/**
* Executes a command on the provided bot with the given parameters.
@ -63,6 +65,7 @@
self::SEND_VIDEO => SendVideo::execute($bot, $parameters),
self::SEND_ANIMATION => SendAnimation::execute($bot, $parameters),
self::SEND_VOICE => SendVoice::execute($bot, $parameters),
self::SEND_VIDEO_NOTE => SendVideoNote::execute($bot, $parameters)
};
}
}