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

Describes the price of a suggested post. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<SuggestedPostPrice>

Public Attributes

std::string currency { }
 Currency in which the post will be paid. Currently, must be one of “XTR” for Telegram Stars or “TON” for TON grams.
std::int32_t amount { }
 The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanograms. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanograms must be between 10000000 and 10000000000000.

Detailed Description

Describes the price of a suggested post.

Definition at line 13966 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 13967 of file Types.h.

Member Data Documentation

◆ amount

std::int32_t TgBot::SuggestedPostPrice::amount { }

The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanograms. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanograms must be between 10000000 and 10000000000000.

Definition at line 13981 of file Types.h.

◆ currency

std::string TgBot::SuggestedPostPrice::currency { }

Currency in which the post will be paid. Currently, must be one of “XTR” for Telegram Stars or “TON” for TON grams.

Definition at line 13973 of file Types.h.


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