tgbot-cpp
Loading...
Searching...
No Matches
TgBot::SuggestedPostPaid Struct Reference

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

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<SuggestedPostPaid>

Public Attributes

std::shared_ptr< MessagesuggestedPostMessage { }
 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.
std::string currency { }
 Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for TON grams.
std::optional< std::int32_t > amount { }
 Optional. The amount of the currency that was received by the channel in nanograms; for payments in TON grams only.
std::shared_ptr< StarAmountstarAmount { }
 Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only.

Detailed Description

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

Definition at line 13907 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 13908 of file Types.h.

Member Data Documentation

◆ amount

std::optional<std::int32_t> TgBot::SuggestedPostPaid::amount { }

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

Definition at line 13926 of file Types.h.

◆ currency

std::string TgBot::SuggestedPostPaid::currency { }

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

Definition at line 13920 of file Types.h.

◆ starAmount

std::shared_ptr<StarAmount> TgBot::SuggestedPostPaid::starAmount { }

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

Definition at line 13932 of file Types.h.

◆ suggestedPostMessage

std::shared_ptr<Message> TgBot::SuggestedPostPaid::suggestedPostMessage { }

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.

Definition at line 13914 of file Types.h.


The documentation for this struct was generated from the following file: