tgbot-cpp
Loading...
Searching...
No Matches
ChatJoinRequest.h
Go to the documentation of this file.
1#ifndef TGBOT_CHATJOINREQUEST_H
2#define TGBOT_CHATJOINREQUEST_H
3
4#include "tgbot/types/Chat.h"
5#include "tgbot/types/User.h"
7
8#include <cstdint>
9#include <memory>
10#include <string>
11
12namespace TgBot {
13
20
21public:
22 typedef std::shared_ptr<ChatJoinRequest> Ptr;
23
28
33
41 std::int64_t userChatId;
42
46 std::int32_t date;
47
51 std::string bio;
52
57};
58}
59
60#endif //TGBOT_CHATJOINREQUEST_H
std::shared_ptr< Chat > Ptr
Definition Chat.h:31
Represents a join request sent to a chat.
ChatInviteLink::Ptr inviteLink
Optional. Chat invite link that was used by the user to send the join request.
std::int32_t date
Date the request was sent in Unix time.
std::string bio
Optional. Bio of the user.
std::shared_ptr< ChatJoinRequest > Ptr
User::Ptr from
User that sent the join request.
Chat::Ptr chat
Chat to which the request was sent.
std::int64_t userChatId
Identifier of a private chat with the user who sent the join request.
std::shared_ptr< User > Ptr
Definition User.h:18
Definition Api.h:40