telegramx.js

SuggestedPostPrice

interface

Describes the price of a suggested post.

Declaration

interface SuggestedPostPrice 

Properties

amountproperty#
amount: number;

The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanograms. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanograms must be between 10000000 and 10000000000000.

currencyproperty#
currency: string;

Currency in which the post will be paid. Currently, must be one of "XTR" for Telegram Stars or "TON" for TON grams.