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

Describes a transaction with a chat. More...

#include <TransactionPartner.hpp>

Inheritance diagram for tgbotxx::TransactionPartnerChat:
tgbotxx::TransactionPartner

Public Member Functions

 TransactionPartnerChat ()
 
 TransactionPartnerChat (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

Ptr< Chatchat
 Information about the chat.
 
Ptr< Giftgift
 Optional. Gift sent to the chat by the bot.
 
- Public Attributes inherited from tgbotxx::TransactionPartner
std::string type
 Type of the transaction partner.
 

Detailed Description

Describes a transaction with a chat.

Definition at line 113 of file TransactionPartner.hpp.

Constructor & Destructor Documentation

◆ TransactionPartnerChat() [1/2]

tgbotxx::TransactionPartnerChat::TransactionPartnerChat ( )
inline

Definition at line 114 of file TransactionPartner.hpp.

◆ TransactionPartnerChat() [2/2]

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

Definition at line 117 of file TransactionPartner.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Reimplemented from tgbotxx::TransactionPartner.

Definition at line 136 of file TransactionPartner.hpp.

◆ toJson()

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

Serializes this object to JSON.

Reimplemented from tgbotxx::TransactionPartner.

Definition at line 128 of file TransactionPartner.hpp.

Member Data Documentation

◆ chat

Ptr<Chat> tgbotxx::TransactionPartnerChat::chat

Information about the chat.

Definition at line 122 of file TransactionPartner.hpp.

◆ gift

Ptr<Gift> tgbotxx::TransactionPartnerChat::gift

Optional. Gift sent to the chat by the bot.

Definition at line 125 of file TransactionPartner.hpp.


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