SuggestedPostPaid
Describes a service message about a successful payment for a suggested post.
fields
| field | type | required | description |
|---|---|---|---|
suggested_post_message | Message | optional | 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. |
currency | "XTR" | "TON" | required | Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins. |
amount | number | optional | Optional. The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only |
star_amount | StarAmount | optional | Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only |
import
import type { SuggestedPostPaid } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#suggestedpostpaid