sendVideoNote method

Future<Message> sendVideoNote(
  1. ChatID chatId,
  2. HttpFile videoNote, {
  3. int? duration,
  4. int? length,
  5. HttpFile? thumb,
  6. bool? disableNotification,
  7. bool? protectContent,
  8. int? replyToMessageId,
  9. bool? allowSendingWithoutReply,
  10. ReplyMarkup? replyMarkup,
})
inherited

Use this method to send video messages.

On success, the sent Message is returned.

Implementation

Future<Message> sendVideoNote(
  ChatID chatId,
  HttpFile videoNote, {
  int? duration,
  int? length,
  HttpFile? thumb,
  bool? disableNotification,
  bool? protectContent,
  int? replyToMessageId,
  bool? allowSendingWithoutReply,
  ReplyMarkup? replyMarkup,
}) {
  return _client.apiCall(_token, 'sendVideoNote', {
    'chat_id': chatId,
    'video_note': videoNote,
    'duration': duration,
    'length': length,
    'disable_notification': disableNotification,
    'protect_content': protectContent,
    'reply_to_message_id': replyToMessageId,
    'allow_sending_without_reply': allowSendingWithoutReply,
    'reply_markup': replyMarkup,
  });
}