Skip to content

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

Class: SuggestedPostPrice

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

Describes price of a suggested post.

Documentation

Constructors

Constructor

new SuggestedPostPrice(payload): SuggestedPostPrice

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

Parameters

ParameterType
payloadTelegramSuggestedPostPrice

Returns

SuggestedPostPrice

Properties

PropertyTypeDefined in
payloadTelegramSuggestedPostPricecontexts/index.d.ts:2660

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

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

Returns

TelegramSuggestedPostPriceCurrency