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

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

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<ChatJoinRequest>

Public Attributes

std::shared_ptr< Chatchat { }
 Chat to which the request was sent.
std::shared_ptr< Userfrom { }
 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< ChatInviteLinkinviteLink { }
 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.

Detailed Description

Represents a join request sent to a chat.

Definition at line 2262 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::ChatJoinRequest::Ptr = std::shared_ptr<ChatJoinRequest>

Definition at line 2263 of file Types.h.

Member Data Documentation

◆ 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 { }

User that sent the join request.

Definition at line 2273 of file Types.h.

◆ 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: