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

x/grammy/context.ts>Context#sendPaidMedia

The Telegram Bot Framework.
Very Popular
Latest
method Context.prototype.sendPaidMedia
import { Context } from "https://deno.land/x/grammy@v1.32.0/context.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

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