replyWithVideo method

Future<Message> replyWithVideo(
  1. InputFile video, {
  2. int? messageThreadId,
  3. int? duration,
  4. int? width,
  5. int? height,
  6. InputFile? thumbnail,
  7. String? caption,
  8. ParseMode? parseMode,
  9. List<MessageEntity>? captionEntities,
  10. bool? hasSpoiler,
  11. bool? supportsStreaming,
  12. bool? disableNotification,
  13. bool? protectContent,
  14. ReplyMarkup? replyMarkup,
  15. ReplyParameters? replyParameters,
  16. String? businessConnectionId,
  17. String? messageEffectId,
  18. bool? showCaptionAboveMedia,
  19. bool? allowPaidBroadcast,
  20. InputFile? cover,
  21. int? startTimestamp,
  22. int? directMessagesTopicId,
  23. SuggestedPostParameters? suggestedPostParameters,
})

Sends a video to the current chat.

Example:

final video = InputFile.fromFile(File('demo.mp4'));
await ctx.replyWithVideo(video, caption: 'Check this out!');

Implementation

Future<Message> replyWithVideo(
  InputFile video, {
  int? messageThreadId,
  int? duration,
  int? width,
  int? height,
  InputFile? thumbnail,
  String? caption,
  ParseMode? parseMode,
  List<MessageEntity>? captionEntities,
  bool? hasSpoiler,
  bool? supportsStreaming,
  bool? disableNotification,
  bool? protectContent,
  ReplyMarkup? replyMarkup,
  ReplyParameters? replyParameters,
  String? businessConnectionId,
  String? messageEffectId,
  bool? showCaptionAboveMedia,
  bool? allowPaidBroadcast,
  InputFile? cover,
  int? startTimestamp,
  int? directMessagesTopicId,
  SuggestedPostParameters? suggestedPostParameters,
}) async {
  final chatId = _getChatId();
  _verifyInfo([chatId], APIMethod.sendVideo);

  return api.sendVideo(
    chatId!,
    video,
    messageThreadId: _threadId(messageThreadId),
    duration: duration,
    width: width,
    height: height,
    thumbnail: thumbnail,
    caption: caption,
    parseMode: parseMode,
    captionEntities: captionEntities,
    hasSpoiler: hasSpoiler,
    supportsStreaming: supportsStreaming,
    disableNotification: disableNotification,
    protectContent: protectContent,
    replyMarkup: replyMarkup,
    replyParameters: replyParameters,
    businessConnectionId: _businessConnectionId(businessConnectionId),
    messageEffectId: messageEffectId,
    showCaptionAboveMedia: showCaptionAboveMedia,
    allowPaidBroadcast: allowPaidBroadcast,
    cover: cover,
    startTimestamp: startTimestamp,
    directMessagesTopicId: directMessagesTopicId,
    suggestedPostParameters: suggestedPostParameters,
  );
}