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

x/grammy/mod.ts>Api#sendPaidMedia

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

Use this method to send paid media. On success, the sent Message is returned.

Parameters

chat_id: number | string

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

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<R, "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