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
42 std::int64_t userChatId;
43
47 std::int32_t date;
48
52 std::string bio;
53
58};
59}
60
61#endif //TGBOT_CHATJOINREQUEST_H
std::shared_ptr< Chat > Ptr
Definition Chat.h:25
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:39