sendAnimation method
Future<Message>
sendAnimation(
- ChatID chatId,
- HttpFile animation, {
- int? duration,
- int? width,
- int? height,
- HttpFile? thumb,
- ParseMode? parseMode,
- bool? disableNotification,
- bool? protectContent,
- int? replyToMessageId,
- bool? allowSendingWithoutReply,
- ReplyMarkup? replyMarkup,
inherited
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.
Implementation
Future<Message> sendAnimation(
ChatID chatId,
HttpFile animation, {
int? duration,
int? width,
int? height,
HttpFile? thumb,
String? caption,
ParseMode? parseMode,
List<MessageEntity>? captionEntities,
bool? disableNotification,
bool? protectContent,
int? replyToMessageId,
bool? allowSendingWithoutReply,
ReplyMarkup? replyMarkup,
}) {
return _client.apiCall(_token, 'sendAnimation', {
'chat_id': chatId,
'animation': animation,
'duration': duration,
'width': width,
'height': height,
'thumb': thumb,
'caption': caption,
'parse_mode': parseMode,
'caption_entities': captionEntities,
'disable_notification': disableNotification,
'protect_content': protectContent,
'reply_to_message_id': replyToMessageId,
'allow_sending_without_reply': allowSendingWithoutReply,
'reply_markup': replyMarkup,
});
}