Skip to content

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

Class: SuggestedPostPaid

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

Describes a service message about a successful payment for a suggested post.

Documentation

Constructors

Constructor

new SuggestedPostPaid(payload): SuggestedPostPaid

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

Parameters

ParameterType
payloadTelegramSuggestedPostPaid

Returns

SuggestedPostPaid

Properties

PropertyTypeDefined in
payloadTelegramSuggestedPostPaidcontexts/index.d.ts:2756

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string


amount

Get Signature

get amount(): number

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

Optional. The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only

Returns

number


currency

Get Signature

get currency(): TelegramSuggestedPostPaidCurrency

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

Currency in which the payment was made. Currently, one of "XTR" for Telegram Stars or "TON" for toncoins

Returns

TelegramSuggestedPostPaidCurrency


starAmount

Get Signature

get starAmount(): TelegramStarAmount

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

Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only

Returns

TelegramStarAmount