Module

x/grammy/mod.ts>Api#sendVideo

The Telegram Bot Framework.
Very Popular
Go to Latest
method Api.prototype.sendVideo
import { Api } from "https://dotland.deno.dev/x/grammy@v1.10.0/mod.ts";

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.

Parameters

chat_id: number | string

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

video: InputFile | string

Video to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or upload a new video using multipart/form-data.

optional
other: Other<R, "sendVideo", "chat_id" | "video">

Optional remaining parameters, confer the official reference below

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

Official reference: https://core.telegram.org/bots/api#sendvideo