tgbot-cpp
Loading...
Searching...
No Matches
TgBot::ChatJoinRequest Class Reference

Represents a join request sent to a chat. More...

#include <ChatJoinRequest.h>

Public Types

typedef std::shared_ptr< ChatJoinRequestPtr
 

Public Attributes

Chat::Ptr chat
 Chat to which the request was sent.
 
User::Ptr from
 User that sent the join request.
 
std::int64_t userChatId
 Identifier of a private chat with the user who sent the join request.
 
std::int32_t date
 Date the request was sent in Unix time.
 
std::string bio
 Optional. Bio of the user.
 
ChatInviteLink::Ptr inviteLink
 Optional. Chat invite link that was used by the user to send the join request.
 

Detailed Description

Represents a join request sent to a chat.

Definition at line 19 of file ChatJoinRequest.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<ChatJoinRequest> TgBot::ChatJoinRequest::Ptr

Definition at line 22 of file ChatJoinRequest.h.

Member Data Documentation

◆ bio

std::string TgBot::ChatJoinRequest::bio

Optional. Bio of the user.

Definition at line 52 of file ChatJoinRequest.h.

◆ chat

Chat::Ptr TgBot::ChatJoinRequest::chat

Chat to which the request was sent.

Definition at line 27 of file ChatJoinRequest.h.

◆ date

std::int32_t TgBot::ChatJoinRequest::date

Date the request was sent in Unix time.

Definition at line 47 of file ChatJoinRequest.h.

◆ from

User::Ptr TgBot::ChatJoinRequest::from

User that sent the join request.

Definition at line 32 of file ChatJoinRequest.h.

◆ inviteLink

ChatInviteLink::Ptr TgBot::ChatJoinRequest::inviteLink

Optional. Chat invite link that was used by the user to send the join request.

Definition at line 57 of file ChatJoinRequest.h.

◆ userChatId

std::int64_t TgBot::ChatJoinRequest::userChatId

Identifier of a private chat with the user who sent the join request.

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.

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.

Definition at line 42 of file ChatJoinRequest.h.


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