tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::ChatMemberBanned Struct Reference

Represents a chat member that was banned in the chat and can't return to the chat or view chat messages. https://core.telegram.org/bots/api#chatmemberbanned. More...

#include <ChatMember.hpp>

Inheritance diagram for tgbotxx::ChatMemberBanned:
tgbotxx::ChatMember

Public Member Functions

 ChatMemberBanned ()=default
 
 ChatMemberBanned (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON. More...
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON. More...
 
- Public Member Functions inherited from tgbotxx::ChatMember
 ChatMember ()=default
 
 ChatMember (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON. More...
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON. More...
 

Public Attributes

std::time_t untilDate {}
 Date when restrictions will be lifted for this user; Unix time. If 0, then the user is banned forever. More...
 
- Public Attributes inherited from tgbotxx::ChatMember
std::string status
 The member's status in the chat. More...
 
Ptr< Useruser
 Information about the user. More...
 

Detailed Description

Represents a chat member that was banned in the chat and can't return to the chat or view chat messages. https://core.telegram.org/bots/api#chatmemberbanned.

Definition at line 314 of file ChatMember.hpp.

Constructor & Destructor Documentation

◆ ChatMemberBanned() [1/2]

tgbotxx::ChatMemberBanned::ChatMemberBanned ( )
default

◆ ChatMemberBanned() [2/2]

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

Definition at line 316 of file ChatMember.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 332 of file ChatMember.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 325 of file ChatMember.hpp.

Member Data Documentation

◆ untilDate

std::time_t tgbotxx::ChatMemberBanned::untilDate {}

Date when restrictions will be lifted for this user; Unix time. If 0, then the user is banned forever.

Definition at line 321 of file ChatMember.hpp.


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