diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 217320a..7ba952f 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -481,6 +481,7 @@ class Client::JsonUser final : public td::Jsonable { object("has_main_web_app", td::JsonBool(user_info->has_main_web_app)); object("has_topics_enabled", td::JsonBool(user_info->has_topics)); object("allows_users_to_create_topics", td::JsonBool(user_info->allows_users_to_create_topics)); + object("can_manage_bots", td::JsonBool(user_info->can_manage_bots)); } } @@ -16048,6 +16049,7 @@ void Client::add_user(UserInfo *user_info, object_ptr &&user) { user_info->has_main_web_app = bot->has_main_web_app_; user_info->has_topics = bot->has_topics_; user_info->allows_users_to_create_topics = bot->allows_users_to_create_topics_; + user_info->can_manage_bots = bot->can_manage_bots_; break; } case td_api::userTypeDeleted::ID: diff --git a/telegram-bot-api/Client.h b/telegram-bot-api/Client.h index ef74574..fb4e179 100644 --- a/telegram-bot-api/Client.h +++ b/telegram-bot-api/Client.h @@ -1024,6 +1024,7 @@ class Client final : public WebhookActor::Callback { bool added_to_attachment_menu = false; bool has_topics = false; bool allows_users_to_create_topics = false; + bool can_manage_bots = false; }; static void add_user(UserInfo *user_info, object_ptr &&user); UserInfo *add_user_info(int64 user_id);