Skip to content

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

Class: SuggestedPostPrice

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

Describes price of a suggested post.

Documentation

Constructors

Constructor

new SuggestedPostPrice(payload): SuggestedPostPrice

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

Parameters

ParameterType
payloadTelegramSuggestedPostPrice

Returns

SuggestedPostPrice

Properties

PropertyTypeDefined in
payloadTelegramSuggestedPostPricecontexts/index.d.ts:2643

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

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

Returns

TelegramSuggestedPostPriceCurrency