Module

x/grammy/context.ts>Context#sendPaidMedia

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

Context-aware alias for api.sendPaidMedia. Use this method to send paid media to channel chats. 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

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