Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy/mod.ts>Api#sendVideoNote

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

Use this method to send video messages. On success, the sent Message is returned. As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long.

Parameters

chat_id: number | string

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

video_note: InputFile | string

Video note to send. Pass a file_id as String to send a video note that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data.. Sending video notes by a URL is currently unsupported

optional
other: Other<R, "sendVideoNote", "chat_id" | "video_note">

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#sendvideonote