telegramx.js

SuggestedPostPaid

interface

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

Declaration

interface SuggestedPostPaid 

Properties

amountproperty#
amount?: number;

Optional. The amount of the currency that was received by the channel in nanograms; for payments in TON grams only

currencyproperty#
currency: string;

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

star_amountproperty#
star_amount?: StarAmount;

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

suggested_post_message?: Message;

Optional. Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.