sendVideo method

Future<Message> sendVideo(
  1. ChatID chatId,
  2. HttpFile video, {
  3. int? duration,
  4. int? width,
  5. int? height,
  6. HttpFile? thumb,
  7. String? caption,
  8. ParseMode? parseMode,
  9. List<MessageEntity>? captionEntities,
  10. bool? supportsStreaming,
  11. bool? disableNotification,
  12. bool? protectContent,
  13. int? replyToMessageId,
  14. bool? allowSendingWithoutReply,
  15. ReplyMarkup? replyMarkup,
})
inherited

Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document).

On success, the sent Message is returned.

Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future.

Implementation

Future<Message> sendVideo(
  ChatID chatId,
  HttpFile video, {
  int? duration,
  int? width,
  int? height,
  HttpFile? thumb,
  String? caption,
  ParseMode? parseMode,
  List<MessageEntity>? captionEntities,
  bool? supportsStreaming,
  bool? disableNotification,
  bool? protectContent,
  int? replyToMessageId,
  bool? allowSendingWithoutReply,
  ReplyMarkup? replyMarkup,
}) {
  return _client.apiCall(_token, 'sendVideo', {
    'chat_id': chatId,
    'video': video,
    'duration': duration,
    'width': width,
    'height': height,
    'thumb': thumb,
    'caption': caption,
    'parse_mode': parseMode,
    'caption_entities': captionEntities,
    'supports_streaming': supportsStreaming,
    'disable_notification': disableNotification,
    'protect_content': protectContent,
    'reply_to_message_id': replyToMessageId,
    'allow_sending_without_reply': allowSendingWithoutReply,
    'reply_markup': replyMarkup,
  });
}