Module

x/grammy/mod.ts>Context#sendPaidMedia

The Telegram Bot Framework.
Very Popular
Latest
method Context.prototype.sendPaidMedia
import { Context } from "https://dotland.deno.dev/x/grammy@v1.31.3/mod.ts";

Context-aware alias for api.sendPaidMedia. Use this method to send paid media. On success, the sent Message is returned.

Parameters

star_count: number

The number of Telegram Stars that must be paid to buy access to the media

media: InputPaidMedia[]

An array describing the media to be sent; up to 10 items

optional
other: Other<"sendPaidMedia", "chat_id" | "star_count" | "media">

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