Represents a join request sent to a chat.
More...
#include <Types.h>
|
| std::shared_ptr< Chat > | chat { } |
| | Chat to which the request was sent.
|
| std::shared_ptr< User > | from { } |
| | User that sent the join request.
|
| 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 5 minutes to send messages until the join request is processed, assuming no other administrator contacted the user.
|
| std::int32_t | date { } |
| | Date the request was sent in Unix time.
|
| std::optional< std::string > | bio { } |
| | Optional. Bio of the user.
|
| std::shared_ptr< ChatInviteLink > | inviteLink { } |
| | Optional. Chat invite link that was used by the user to send the join request.
|
| std::optional< std::string > | queryId { } |
| | Optional. Identifier of the join request query; for bots assigned to process join requests only. If present, then the bot must call sendChatJoinRequestWebApp or directly call answerChatJoinRequestQuery within 10 seconds.
|
Represents a join request sent to a chat.
Definition at line 2262 of file Types.h.
◆ Ptr
◆ bio
| std::optional<std::string> TgBot::ChatJoinRequest::bio { } |
Optional. Bio of the user.
Definition at line 2293 of file Types.h.
◆ chat
| std::shared_ptr<Chat> TgBot::ChatJoinRequest::chat { } |
Chat to which the request was sent.
Definition at line 2268 of file Types.h.
◆ date
| std::int32_t TgBot::ChatJoinRequest::date { } |
Date the request was sent in Unix time.
Definition at line 2288 of file Types.h.
◆ from
| std::shared_ptr<User> TgBot::ChatJoinRequest::from { } |
◆ inviteLink
| std::shared_ptr<ChatInviteLink> TgBot::ChatJoinRequest::inviteLink { } |
Optional. Chat invite link that was used by the user to send the join request.
Definition at line 2298 of file Types.h.
◆ queryId
| std::optional<std::string> TgBot::ChatJoinRequest::queryId { } |
Optional. Identifier of the join request query; for bots assigned to process join requests only. If present, then the bot must call sendChatJoinRequestWebApp or directly call answerChatJoinRequestQuery within 10 seconds.
Definition at line 2305 of file Types.h.
◆ userChatId
| std::int64_t TgBot::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 5 minutes to send messages until the join request is processed, assuming no other administrator contacted the user.
Definition at line 2283 of file Types.h.
The documentation for this struct was generated from the following file: