method ApiMethods.sendVideo
ApiMethods.sendVideo(args: { business_connection_id?: string; chat_id: number | string; message_thread_id?: number; direct_messages_topic_id?: number; video: F | string; duration?: number; width?: number; height?: number; thumbnail?: F; cover?: F | string; start_timestamp?: number; caption?: string; parse_mode?: ParseMode; caption_entities?: MessageEntity[]; show_caption_above_media?: boolean; has_spoiler?: boolean; supports_streaming?: boolean; disable_notification?: boolean; protect_content?: boolean; allow_paid_broadcast?: boolean; suggested_post_parameters?: SuggestedPostParameters; message_effect_id?: string; reply_parameters?: ReplyParameters; reply_markup?: ; reply_to_message_id?: number; }): Message.VideoMessage

Use this method to send video files, Telegram clients support MPEG4 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.

Parameters

args: { business_connection_id?: string; chat_id: number | string; message_thread_id?: number; direct_messages_topic_id?: number; video: F | string; duration?: number; width?: number; height?: number; thumbnail?: F; cover?: F | string; start_timestamp?: number; caption?: string; parse_mode?: ParseMode; caption_entities?: MessageEntity[]; show_caption_above_media?: boolean; has_spoiler?: boolean; supports_streaming?: boolean; disable_notification?: boolean; protect_content?: boolean; allow_paid_broadcast?: boolean; suggested_post_parameters?: SuggestedPostParameters; message_effect_id?: string; reply_parameters?: ReplyParameters; reply_markup?: ; reply_to_message_id?: number; }

Return Type

Usage

import { type ApiMethods } from "types";