tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::TransactionPartnerTelegramApi Struct Reference

Describes a transaction for paid broadcasting (Telegram API). More...

#include <TransactionPartner.hpp>

Inheritance diagram for tgbotxx::TransactionPartnerTelegramApi:
tgbotxx::TransactionPartner

Public Member Functions

 TransactionPartnerTelegramApi ()
 
 TransactionPartnerTelegramApi (const nl::json &json)
 
nl::json toJson () const override
 Serializes this object to JSON.
 
void fromJson (const nl::json &json) override
 Deserializes this object from JSON.
 
- Public Member Functions inherited from tgbotxx::TransactionPartner
 TransactionPartner ()=default
 
 TransactionPartner (const nl::json &json)
 
virtual ~TransactionPartner ()=default
 

Public Attributes

std::int32_t requestCount {}
 Number of successful requests exceeding regular limits that were billed.
 
- Public Attributes inherited from tgbotxx::TransactionPartner
std::string type
 Type of the transaction partner.
 

Detailed Description

Describes a transaction for paid broadcasting (Telegram API).

Definition at line 207 of file TransactionPartner.hpp.

Constructor & Destructor Documentation

◆ TransactionPartnerTelegramApi() [1/2]

tgbotxx::TransactionPartnerTelegramApi::TransactionPartnerTelegramApi ( )
inline

Definition at line 208 of file TransactionPartner.hpp.

◆ TransactionPartnerTelegramApi() [2/2]

tgbotxx::TransactionPartnerTelegramApi::TransactionPartnerTelegramApi ( const nl::json &  json)
inlineexplicit

Definition at line 211 of file TransactionPartner.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::TransactionPartnerTelegramApi::fromJson ( const nl::json &  json)
inlineoverridevirtual

Deserializes this object from JSON.

Reimplemented from tgbotxx::TransactionPartner.

Definition at line 224 of file TransactionPartner.hpp.

◆ toJson()

nl::json tgbotxx::TransactionPartnerTelegramApi::toJson ( ) const
inlineoverridevirtual

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::TransactionPartner.

Definition at line 218 of file TransactionPartner.hpp.

Member Data Documentation

◆ requestCount

std::int32_t tgbotxx::TransactionPartnerTelegramApi::requestCount {}

Number of successful requests exceeding regular limits that were billed.

Definition at line 216 of file TransactionPartner.hpp.


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