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

Describes a service message about the chat owner leaving the chat. https://core.telegram.org/bots/api#chatownerleft. More...

#include <ChatOwnerLeft.hpp>

Public Member Functions

 ChatOwnerLeft ()=default
 
 ChatOwnerLeft (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
 Optional. The user which will be the new owner of the chat if the previous owner does not return to the chat.
 

Detailed Description

Describes a service message about the chat owner leaving the chat. https://core.telegram.org/bots/api#chatownerleft.

Definition at line 8 of file ChatOwnerLeft.hpp.

Constructor & Destructor Documentation

◆ ChatOwnerLeft() [1/2]

tgbotxx::ChatOwnerLeft::ChatOwnerLeft ( )
default

◆ ChatOwnerLeft() [2/2]

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

Definition at line 10 of file ChatOwnerLeft.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 27 of file ChatOwnerLeft.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 20 of file ChatOwnerLeft.hpp.

Member Data Documentation

◆ newOwner

Ptr<User> tgbotxx::ChatOwnerLeft::newOwner

Optional. The user which will be the new owner of the chat if the previous owner does not return to the chat.

Definition at line 15 of file ChatOwnerLeft.hpp.


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