mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Check if bot supports Telegram Business.
This commit is contained in:
@@ -22,13 +22,6 @@ struct BusinessDetails;
|
||||
struct BotInfo {
|
||||
BotInfo();
|
||||
|
||||
bool inited = false;
|
||||
bool readsAllHistory = false;
|
||||
bool cantJoinGroups = false;
|
||||
bool supportsAttachMenu = false;
|
||||
bool canEditInformation = false;
|
||||
int version = 0;
|
||||
int descriptionVersion = 0;
|
||||
QString description;
|
||||
QString inlinePlaceholder;
|
||||
std::vector<Data::BotCommand> commands;
|
||||
@@ -44,6 +37,15 @@ struct BotInfo {
|
||||
|
||||
ChatAdminRights groupAdminRights;
|
||||
ChatAdminRights channelAdminRights;
|
||||
|
||||
int version = 0;
|
||||
int descriptionVersion = 0;
|
||||
bool inited : 1 = false;
|
||||
bool readsAllHistory : 1 = false;
|
||||
bool cantJoinGroups : 1 = false;
|
||||
bool supportsAttachMenu : 1 = false;
|
||||
bool canEditInformation : 1 = false;
|
||||
bool supportsBusiness : 1 = false;
|
||||
};
|
||||
|
||||
enum class UserDataFlag : uint32 {
|
||||
|
Reference in New Issue
Block a user