tgbot-cpp
Loading...
Searching...
No Matches
KeyboardButtonRequestChat.h
Go to the documentation of this file.
1
#ifndef TGBOT_KEYBOARDBUTTONREQUESTCHAT_H
2
#define TGBOT_KEYBOARDBUTTONREQUESTCHAT_H
3
4
#include "
tgbot/types/ChatAdministratorRights.h
"
5
6
#include <cstdint>
7
#include <memory>
8
9
namespace
TgBot
{
10
19
class
KeyboardButtonRequestChat
{
20
21
public
:
22
typedef
std::shared_ptr<KeyboardButtonRequestChat>
Ptr
;
23
29
std::int32_t
requestId
;
30
34
bool
chatIsChannel
;
35
41
bool
chatIsForum
;
42
48
bool
chatHasUsername
;
49
55
bool
chatIsCreated
;
56
63
ChatAdministratorRights::Ptr
userAdministratorRights
;
64
71
ChatAdministratorRights::Ptr
botAdministratorRights
;
72
78
bool
botIsMember
;
79
83
bool
requestTitle
;
84
88
bool
requestUsername
;
89
93
bool
requestPhoto
;
94
};
95
}
96
97
#endif
//TGBOT_KEYBOARDBUTTONREQUESTCHAT_H
ChatAdministratorRights.h
TgBot::ChatAdministratorRights::Ptr
std::shared_ptr< ChatAdministratorRights > Ptr
Definition
ChatAdministratorRights.h:16
TgBot::KeyboardButtonRequestChat
This object defines the criteria used to request a suitable chat.
Definition
KeyboardButtonRequestChat.h:19
TgBot::KeyboardButtonRequestChat::botAdministratorRights
ChatAdministratorRights::Ptr botAdministratorRights
Optional. A JSON-serialized object listing the required administrator rights of the bot in the chat.
Definition
KeyboardButtonRequestChat.h:71
TgBot::KeyboardButtonRequestChat::userAdministratorRights
ChatAdministratorRights::Ptr userAdministratorRights
Optional. A JSON-serialized object listing the required administrator rights of the user in the chat.
Definition
KeyboardButtonRequestChat.h:63
TgBot::KeyboardButtonRequestChat::chatIsCreated
bool chatIsCreated
Optional. Pass True to request a chat owned by the user.
Definition
KeyboardButtonRequestChat.h:55
TgBot::KeyboardButtonRequestChat::Ptr
std::shared_ptr< KeyboardButtonRequestChat > Ptr
Definition
KeyboardButtonRequestChat.h:22
TgBot::KeyboardButtonRequestChat::requestId
std::int32_t requestId
Signed 32-bit identifier of the request, which will be received back in the ChatShared object.
Definition
KeyboardButtonRequestChat.h:29
TgBot::KeyboardButtonRequestChat::botIsMember
bool botIsMember
Optional. Pass True to request a chat with the bot as a member.
Definition
KeyboardButtonRequestChat.h:78
TgBot::KeyboardButtonRequestChat::chatHasUsername
bool chatHasUsername
Optional. Pass True to request a supergroup or a channel with a username, pass False to request a cha...
Definition
KeyboardButtonRequestChat.h:48
TgBot::KeyboardButtonRequestChat::requestPhoto
bool requestPhoto
Optional. Pass True to request the chat's photo.
Definition
KeyboardButtonRequestChat.h:93
TgBot::KeyboardButtonRequestChat::chatIsForum
bool chatIsForum
Optional. Pass True to request a forum supergroup, pass False to request a non-forum chat.
Definition
KeyboardButtonRequestChat.h:41
TgBot::KeyboardButtonRequestChat::chatIsChannel
bool chatIsChannel
Pass True to request a channel chat, pass False to request a group or a supergroup chat.
Definition
KeyboardButtonRequestChat.h:34
TgBot::KeyboardButtonRequestChat::requestUsername
bool requestUsername
Optional. Pass True to request the chat's username.
Definition
KeyboardButtonRequestChat.h:88
TgBot::KeyboardButtonRequestChat::requestTitle
bool requestTitle
Optional. Pass True to request the chat's title.
Definition
KeyboardButtonRequestChat.h:83
TgBot
Definition
Api.h:40
include
tgbot
types
KeyboardButtonRequestChat.h
Generated on Tue Jun 11 2024 00:46:35 for tgbot-cpp by
1.11.0