tgbot-cpp
Loading...
Searching...
No Matches
KeyboardButtonRequestUsers.h
Go to the documentation of this file.
1
#ifndef TGBOT_KEYBOARDBUTTONREQUESTUSERS_H
2
#define TGBOT_KEYBOARDBUTTONREQUESTUSERS_H
3
4
#include <cstdint>
5
#include <memory>
6
7
namespace
TgBot
{
8
17
class
KeyboardButtonRequestUsers
{
18
19
public
:
20
typedef
std::shared_ptr<KeyboardButtonRequestUsers>
Ptr
;
21
27
std::int32_t
requestId
;
28
34
bool
userIsBot
;
35
41
bool
userIsPremium
;
42
48
std::uint8_t
maxQuantity
;
49
53
bool
requestName
;
54
58
bool
requestUsername
;
59
63
bool
requestPhoto
;
64
};
65
}
66
67
#endif
//TGBOT_KEYBOARDBUTTONREQUESTUSERS_H
TgBot::KeyboardButtonRequestUsers
This object defines the criteria used to request suitable users.
Definition
KeyboardButtonRequestUsers.h:17
TgBot::KeyboardButtonRequestUsers::requestUsername
bool requestUsername
Optional. Pass True to request the users' username.
Definition
KeyboardButtonRequestUsers.h:58
TgBot::KeyboardButtonRequestUsers::requestName
bool requestName
Optional. Pass True to request the users' first and last name.
Definition
KeyboardButtonRequestUsers.h:53
TgBot::KeyboardButtonRequestUsers::Ptr
std::shared_ptr< KeyboardButtonRequestUsers > Ptr
Definition
KeyboardButtonRequestUsers.h:20
TgBot::KeyboardButtonRequestUsers::userIsBot
bool userIsBot
Optional. Pass True to request bots, pass False to request regular users.
Definition
KeyboardButtonRequestUsers.h:34
TgBot::KeyboardButtonRequestUsers::requestId
std::int32_t requestId
Signed 32-bit identifier of the request that will be received back in the UsersShared object.
Definition
KeyboardButtonRequestUsers.h:27
TgBot::KeyboardButtonRequestUsers::requestPhoto
bool requestPhoto
Optional. Pass True to request the users' photo.
Definition
KeyboardButtonRequestUsers.h:63
TgBot::KeyboardButtonRequestUsers::maxQuantity
std::uint8_t maxQuantity
Optional. The maximum number of users to be selected; 1-10.
Definition
KeyboardButtonRequestUsers.h:48
TgBot::KeyboardButtonRequestUsers::userIsPremium
bool userIsPremium
Optional. Pass True to request premium users, pass False to request non-premium users.
Definition
KeyboardButtonRequestUsers.h:41
TgBot
Definition
Api.h:40
include
tgbot
types
KeyboardButtonRequestUsers.h
Generated on Tue Jun 11 2024 00:46:35 for tgbot-cpp by
1.11.0