peyk.platforms.telegram.types.suggested_post_paid

Classes

SuggestedPostPaid([suggested_post_message, ...])

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

class peyk.platforms.telegram.types.suggested_post_paid.SuggestedPostPaid(suggested_post_message: Message | None = None, price: object | None = None)[source]

Bases: object

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

Variables:
  • currency – Currency in which the payment was made. Currently, one of ‘XTR’ for Telegram Stars or ‘TON’ for TON grams.

  • suggested_post_message (peyk.platforms.telegram.types.message.Message | None) – 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.

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

  • star_amount – The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only

suggested_post_message: Message | None = None
price: object | None = None
classmethod from_dict(data: dict | None) SuggestedPostPaid | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.