tgbot-cpp
Loading...
Searching...
No Matches
SharedUser.h
Go to the documentation of this file.
1#ifndef TGBOT_SHAREDUSER_H
2#define TGBOT_SHAREDUSER_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<SharedUser> Ptr;
22
30 std::int64_t userId;
31
35 std::string firstName;
36
40 std::string lastName;
41
45 std::string username;
46
50 std::vector<PhotoSize::Ptr> photo;
51};
52}
53
54#endif //TGBOT_SHAREDUSER_H
This object contains information about a user that was shared with the bot using a KeyboardButtonRequ...
Definition SharedUser.h:18
std::vector< PhotoSize::Ptr > photo
Optional. Available sizes of the chat photo, if the photo was requested by the bot.
Definition SharedUser.h:50
std::string username
Optional. Username of the user, if the username was requested by the bot.
Definition SharedUser.h:45
std::int64_t userId
Identifier of the shared user.
Definition SharedUser.h:30
std::string lastName
Optional. Last name of the user, if the name was requested by the bot.
Definition SharedUser.h:40
std::string firstName
Optional. First name of the user, if the name was requested by the bot.
Definition SharedUser.h:35
std::shared_ptr< SharedUser > Ptr
Definition SharedUser.h:21
Definition Api.h:40