tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
Represents a join request sent to a chat. https://core.telegram.org/bots/api#chatjoinrequest. More...
#include <ChatJoinRequest.hpp>
Public Member Functions | |
ChatJoinRequest ()=default | |
ChatJoinRequest (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 | |
Ptr< Chat > | chat |
Chat to which the request was sent. More... | |
Ptr< User > | from |
User that sent the join request. More... | |
std::int64_t | userChatId {} |
Identifier of a private chat with the user who sent the join request. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot can use this identifier for 24 hours to send messages until the join request is processed, assuming no other administrator contacted the user. More... | |
std::time_t | date {} |
Date the request was sent in Unix time. More... | |
std::string | bio |
Optional. Bio of the user. More... | |
Ptr< ChatInviteLink > | inviteLink |
Optional. Chat invite link that was used by the user to send the join request. More... | |
Represents a join request sent to a chat. https://core.telegram.org/bots/api#chatjoinrequest.
Definition at line 11 of file ChatJoinRequest.hpp.
|
default |
|
inlineexplicit |
Definition at line 13 of file ChatJoinRequest.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 53 of file ChatJoinRequest.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 41 of file ChatJoinRequest.hpp.
std::string tgbotxx::ChatJoinRequest::bio |
Optional. Bio of the user.
Definition at line 33 of file ChatJoinRequest.hpp.
Chat to which the request was sent.
Definition at line 18 of file ChatJoinRequest.hpp.
std::time_t tgbotxx::ChatJoinRequest::date {} |
Date the request was sent in Unix time.
Definition at line 30 of file ChatJoinRequest.hpp.
User that sent the join request.
Definition at line 21 of file ChatJoinRequest.hpp.
Ptr<ChatInviteLink> tgbotxx::ChatJoinRequest::inviteLink |
Optional. Chat invite link that was used by the user to send the join request.
Definition at line 36 of file ChatJoinRequest.hpp.
std::int64_t tgbotxx::ChatJoinRequest::userChatId {} |
Identifier of a private chat with the user who sent the join request. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot can use this identifier for 24 hours to send messages until the join request is processed, assuming no other administrator contacted the user.
Definition at line 27 of file ChatJoinRequest.hpp.