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 <memory>
6#include <string>
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
69
76
83
90};
91}
92
93#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.
Definition User.h:68
std::string username
Optional. User's or bot's username.
Definition User.h:46
bool canConnectToBusiness
Optional. True, if the bot can be connected to a Telegram Business account to receive its messages.
Definition User.h:89
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.
Definition User.h:75
bool supportsInlineQueries
Optional. True, if the bot supports inline queries.
Definition User.h:82
Definition Api.h:40