SendVideoRequest

data class SendVideoRequest(chat_id: String, video: String, duration: Long?, width: Long?, height: Long?, thumb: String?, caption: String?, parse_mode: ParseMode?, caption_entities: List<MessageEntity>?, supports_streaming: Boolean?, disable_notification: Boolean?, reply_to_message_id: Long?, allow_sending_without_reply: Boolean?, reply_markup: KeyboardOption?) : TelegramRequest

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.

Constructors

SendVideoRequest
Link copied to clipboard
fun SendVideoRequest(chat_id: String, video: String, duration: Long? = null, width: Long? = null, height: Long? = null, thumb: String? = null, caption: String? = null, parse_mode: ParseMode? = null, caption_entities: List<MessageEntity>? = null, supports_streaming: Boolean? = null, disable_notification: Boolean? = null, reply_to_message_id: Long? = null, allow_sending_without_reply: Boolean? = null, reply_markup: KeyboardOption? = null)

Properties

allow_sending_without_reply
Link copied to clipboard
val allow_sending_without_reply: Boolean? = null
Pass True, if the message should be sent even if the specified replied-to message is not found
caption
Link copied to clipboard
val caption: String? = null
Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities parsing
caption_entities
Link copied to clipboard
val caption_entities: List<MessageEntity>? = null
List of special entities that appear in the caption, which can be specified instead of parse_mode
chat_id
Link copied to clipboard
val chat_id: String
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
disable_notification
Link copied to clipboard
val disable_notification: Boolean? = null
Sends the message
duration
Link copied to clipboard
val duration: Long? = null
Duration of sent video in seconds
height
Link copied to clipboard
val height: Long? = null
Video height
parse_mode
Link copied to clipboard
val parse_mode: ParseMode? = null
Mode for parsing entities in the video caption.
reply_markup
Link copied to clipboard
val reply_markup: KeyboardOption? = null
Additional interface options.
reply_to_message_id
Link copied to clipboard
val reply_to_message_id: Long? = null
If the message is a reply, ID of the original message
supports_streaming
Link copied to clipboard
val supports_streaming: Boolean? = null
Pass True, if the uploaded video is suitable for streaming
thumb
Link copied to clipboard
val thumb: String? = null
Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side.
video
Link copied to clipboard
val video: String
Video to send.
width
Link copied to clipboard
val width: Long? = null
Video width