Skip to content

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

Class: SuggestedPostPaid

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

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

Parameters

ParameterType
payloadTelegramSuggestedPostPaid

Returns

SuggestedPostPaid

Properties

PropertyTypeDefined in
payloadTelegramSuggestedPostPaidcontexts/index.d.ts:3031

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string


amount

Get Signature

get amount(): number

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

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

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

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

Returns

TelegramStarAmount