GramIO API Reference / @gramio/contexts/dist / SuggestedPostPrice
Class: SuggestedPostPrice
Defined in: contexts/index.d.ts:2642
Describes price of a suggested post.
Constructors
Constructor
new SuggestedPostPrice(
payload):SuggestedPostPrice
Defined in: contexts/index.d.ts:2644
Parameters
| Parameter | Type |
|---|---|
payload | TelegramSuggestedPostPrice |
Returns
SuggestedPostPrice
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramSuggestedPostPrice | contexts/index.d.ts:2643 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:2646
Returns
string
amount
Get Signature
get amount():
number
Defined in: contexts/index.d.ts:2654
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:2650
Currency in which the post will be paid. Currently, must be one of "XTR" for Telegram Stars or "TON" for toncoins