tgbot-cpp
Loading...
Searching...
No Matches
User.h
Go to the documentation of this file.
1#ifndef TGBOT_USER_H
2#define TGBOT_USER_H
3
4#include <cstdint>
5#include <string>
6#include <memory>
7
8namespace TgBot {
9
15class User {
16
17public:
18 typedef std::shared_ptr<User> Ptr;
19
26 std::int64_t id;
27
31 bool isBot;
32
36 std::string firstName;
37
41 std::string lastName;
42
46 std::string username;
47
51 std::string languageCode;
52
57
62
68
74
80};
81}
82
83#endif //TGBOT_USER_H
This object represents a Telegram user or bot.
Definition User.h:15
std::int64_t id
Unique identifier for this user or bot.
Definition User.h:26
bool canJoinGroups
Optional. True, if the bot can be invited to groups. Returned only in Api::getMe.
Definition User.h:67
std::string username
Optional. User's or bot's username.
Definition User.h:46
std::string lastName
Optional. User's or bot's last name.
Definition User.h:41
bool addedToAttachmentMenu
Optional. True, if this user added the bot to the attachment menu.
Definition User.h:61
std::string firstName
User's or bot's first name.
Definition User.h:36
bool isBot
True, if this user is a bot.
Definition User.h:31
bool isPremium
Optional. True, if this user is a Telegram Premium user.
Definition User.h:56
std::shared_ptr< User > Ptr
Definition User.h:18
std::string languageCode
Optional. IETF language tag of the user's language.
Definition User.h:51
bool canReadAllGroupMessages
Optional. True, if privacy mode is disabled for the bot. Returned only in Api::getMe.
Definition User.h:73
bool supportsInlineQueries
Optional. True, if the bot supports inline queries. Returned only in Api::getMe.
Definition User.h:79
Definition Api.h:39