tgbotxx 1.2.9.5
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::ChatOwnerChanged Struct Reference

Describes a service message about an ownership change in the chat. https://core.telegram.org/bots/api#chatownerchanged. More...

#include <ChatOwnerChanged.hpp>

Public Member Functions

 ChatOwnerChanged ()=default
 
 ChatOwnerChanged (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON.
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON.
 

Public Attributes

Ptr< UsernewOwner
 The new owner of the chat.
 

Detailed Description

Describes a service message about an ownership change in the chat. https://core.telegram.org/bots/api#chatownerchanged.

Definition at line 8 of file ChatOwnerChanged.hpp.

Constructor & Destructor Documentation

◆ ChatOwnerChanged() [1/2]

tgbotxx::ChatOwnerChanged::ChatOwnerChanged ( )
default

◆ ChatOwnerChanged() [2/2]

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

Definition at line 10 of file ChatOwnerChanged.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::ChatOwnerChanged::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 27 of file ChatOwnerChanged.hpp.

◆ toJson()

nl::json tgbotxx::ChatOwnerChanged::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 20 of file ChatOwnerChanged.hpp.

Member Data Documentation

◆ newOwner

Ptr<User> tgbotxx::ChatOwnerChanged::newOwner

The new owner of the chat.

Definition at line 15 of file ChatOwnerChanged.hpp.


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