From 738e6bd0f4e5b412655b83dbae2501c798e0393e Mon Sep 17 00:00:00 2001 From: netkas Date: Wed, 9 Oct 2024 13:32:23 -0400 Subject: [PATCH] Updated SendAnimation --- src/TgBotLib/Methods/SendAnimation.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/TgBotLib/Methods/SendAnimation.php b/src/TgBotLib/Methods/SendAnimation.php index bd01ca3..4d91b96 100644 --- a/src/TgBotLib/Methods/SendAnimation.php +++ b/src/TgBotLib/Methods/SendAnimation.php @@ -5,6 +5,7 @@ use TgBotLib\Abstracts\Method; use TgBotLib\Bot; use TgBotLib\Enums\Methods; + use TgBotLib\Exceptions\TelegramException; use TgBotLib\Interfaces\ObjectTypeInterface; use TgBotLib\Objects\Message; use TgBotLib\Objects\MessageEntity; @@ -13,7 +14,14 @@ class SendAnimation extends Method { /** - * @inheritDoc + * Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). On success, + * the sent Message is returned. Bots can currently send animation files of up to 50 MB in size, + * this limit may be changed in the future. + * + * @param Bot $bot + * @param array $parameters + * @return Message + * @throws TelegramException */ public static function execute(Bot $bot, array $parameters = []): Message {