Skip to content

GramIO API Reference / @gramio/contexts/dist / SuggestedPostPrice

Class: SuggestedPostPrice ​

Defined in: contexts/index.d.ts:2934

Describes price of a suggested post.

Documentation

Constructors ​

Constructor ​

new SuggestedPostPrice(payload): SuggestedPostPrice

Defined in: contexts/index.d.ts:2936

Parameters ​

ParameterType
payloadTelegramSuggestedPostPrice

Returns ​

SuggestedPostPrice

Properties ​

PropertyTypeDefined in
payloadTelegramSuggestedPostPricecontexts/index.d.ts:2935

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

Defined in: contexts/index.d.ts:2938

MDN

Returns ​

string


amount ​

Get Signature ​

get amount(): number

Defined in: contexts/index.d.ts:2946

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:2942

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

Returns ​

TelegramSuggestedPostPriceCurrency