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
17
class
KeyboardButtonRequestChat
{
18
19
public
:
20
typedef
std::shared_ptr<KeyboardButtonRequestChat>
Ptr
;
21
27
std::int32_t
requestId
;
28
32
bool
chatIsChannel
;
33
39
bool
chatIsForum
;
40
46
bool
chatHasUsername
;
47
53
bool
chatIsCreated
;
54
61
ChatAdministratorRights::Ptr
userAdministratorRights
;
62
69
ChatAdministratorRights::Ptr
botAdministratorRights
;
70
76
bool
botIsMember
;
77
};
78
}
79
80
#endif
//TGBOT_KEYBOARDBUTTONREQUESTCHAT_H
ChatAdministratorRights.h
TgBot::ChatAdministratorRights::Ptr
std::shared_ptr< ChatAdministratorRights > Ptr
Definition
ChatAdministratorRights.h:15
TgBot::KeyboardButtonRequestChat
This object defines the criteria used to request a suitable chat. The identifier of the selected chat...
Definition
KeyboardButtonRequestChat.h:17
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:69
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:61
TgBot::KeyboardButtonRequestChat::chatIsCreated
bool chatIsCreated
Optional. Pass True to request a chat owned by the user.
Definition
KeyboardButtonRequestChat.h:53
TgBot::KeyboardButtonRequestChat::Ptr
std::shared_ptr< KeyboardButtonRequestChat > Ptr
Definition
KeyboardButtonRequestChat.h:20
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:27
TgBot::KeyboardButtonRequestChat::botIsMember
bool botIsMember
Optional. Pass True to request a chat with the bot as a member.
Definition
KeyboardButtonRequestChat.h:76
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:46
TgBot::KeyboardButtonRequestChat::chatIsForum
bool chatIsForum
Optional. Pass True to request a forum supergroup, pass False to request a non-forum chat.
Definition
KeyboardButtonRequestChat.h:39
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:32
TgBot
Definition
Api.h:39
include
tgbot
types
KeyboardButtonRequestChat.h
Generated on Mon Mar 4 2024 01:37:26 for tgbot-cpp by
1.10.0