replyVideo method

Future<Message> replyVideo(
  1. dynamic video, {
  2. bool withQuote = false,
  3. int? duration,
  4. int? width,
  5. int? height,
  6. dynamic thumbnail,
  7. String? caption,
  8. String? parseMode,
  9. List<MessageEntity>? captionEntities,
  10. bool? hasSpoiler,
  11. bool? supportsStreaming,
  12. bool? disableNotification,
  13. bool? allowSendingWithoutReply,
  14. ReplyMarkup? replyMarkup,
})

Reply to the recieved message with a video

A wrapper around TeleDart.sendVideo. On success, returns the sent Message.

Apart from a video 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> replyVideo(
  dynamic video, {
  bool withQuote = false,
  int? duration,
  int? width,
  int? height,
  dynamic thumbnail,
  String? caption,
  String? parseMode,
  List<MessageEntity>? captionEntities,
  bool? hasSpoiler,
  bool? supportsStreaming,
  bool? disableNotification,
  bool? allowSendingWithoutReply,
  ReplyMarkup? replyMarkup,
}) =>
    _teledart.sendVideo(chat.id, video,
        messageThreadId: messageThreadId,
        duration: duration,
        width: width,
        height: height,
        thumbnail: thumbnail,
        caption: caption,
        parseMode: parseMode,
        captionEntities: captionEntities,
        hasSpoiler: hasSpoiler,
        supportsStreaming: supportsStreaming,
        disableNotification: disableNotification,
        replyToMessageId: withQuote ? messageId : null,
        allowSendingWithoutReply: allowSendingWithoutReply,
        replyMarkup: replyMarkup);