replyAnimation method
Reply to the recieved message with an animation (GIF or H.264/MPEG-4 AVC video without sound)
A wrapper around TeleDart.sendAnimation. On success, returns the sent Message.
Apart from an animation
to reply with, it can
also take some options that control the message
appearance and behavior.
Check Telegram API documentation for more information about those options.
Implementation
Future<Message> replyAnimation(
dynamic animation, {
bool withQuote = false,
int? duration,
int? width,
int? height,
dynamic thumbnail,
String? caption,
String? parseMode,
List<MessageEntity>? captionEntities,
bool? hasSpoiler,
bool? disableNotification,
bool? allowSendingWithoutReply,
ReplyMarkup? replyMarkup,
}) =>
_teledart.sendAnimation(chat.id, animation,
messageThreadId: messageThreadId,
duration: duration,
width: width,
height: height,
thumbnail: thumbnail,
caption: caption,
parseMode: parseMode,
captionEntities: captionEntities,
hasSpoiler: hasSpoiler,
disableNotification: disableNotification,
replyToMessageId: withQuote ? messageId : null,
allowSendingWithoutReply: allowSendingWithoutReply,
replyMarkup: replyMarkup);