GramIO API Reference / @gramio/contexts/dist / SuggestedPostPrice
Class: SuggestedPostPrice
Defined in: contexts/index.d.ts:2659
Describes price of a suggested post.
Constructors
Constructor
new SuggestedPostPrice(
payload):SuggestedPostPrice
Defined in: contexts/index.d.ts:2661
Parameters
| Parameter | Type |
|---|---|
payload | TelegramSuggestedPostPrice |
Returns
SuggestedPostPrice
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramSuggestedPostPrice | contexts/index.d.ts:2660 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:2663
Returns
string
amount
Get Signature
get amount():
number
Defined in: contexts/index.d.ts:2671
The amount of the currency that will be paid for the post in the smallest units of the currency
Returns
number
currency
Get Signature
get currency():
TelegramSuggestedPostPriceCurrency
Defined in: contexts/index.d.ts:2667
Currency in which the post will be paid. Currently, must be one of "XTR" for Telegram Stars or "TON" for toncoins