tgbot-cpp
Loading...
Searching...
No Matches
ChatShared.h
Go to the documentation of this file.
1#ifndef TGBOT_CHATSHARED_H
2#define TGBOT_CHATSHARED_H
3
5
6#include <cstdint>
7#include <memory>
8#include <string>
9#include <vector>
10
11namespace TgBot {
12
19
20public:
21 typedef std::shared_ptr<ChatShared> Ptr;
22
26 std::int32_t requestId;
27
36 std::int64_t chatId;
37
41 std::string title;
42
46 std::string username;
47
51 std::vector<PhotoSize::Ptr> photo;
52};
53}
54
55#endif //TGBOT_CHATSHARED_H
This object contains information about a chat that was shared with the bot using a KeyboardButtonRequ...
Definition ChatShared.h:18
std::string title
Optional. Title of the chat, if the title was requested by the bot.
Definition ChatShared.h:41
std::string username
Optional. Username of the chat, if the username was requested by the bot and available.
Definition ChatShared.h:46
std::int32_t requestId
Identifier of the request.
Definition ChatShared.h:26
std::shared_ptr< ChatShared > Ptr
Definition ChatShared.h:21
std::int64_t chatId
Identifier of the shared chat.
Definition ChatShared.h:36
std::vector< PhotoSize::Ptr > photo
Optional. Available sizes of the chat photo, if the photo was requested by the bot.
Definition ChatShared.h:51
Definition Api.h:40