Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/grammy/mod.ts>Context#sendPaidMedia

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

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