2
0
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:
John Preston
2024-03-28 18:22:03 +04:00
parent f65bc7c0bd
commit 0d740c21a2
4 changed files with 30 additions and 12 deletions

View File

@@ -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 {