Add User.can_manage_bots.

main
levlam 3 months ago
parent 6615eed59e
commit ac86bfd9b3

@ -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_main_web_app", td::JsonBool(user_info->has_main_web_app));
object("has_topics_enabled", td::JsonBool(user_info->has_topics)); 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("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<td_api::user> &&user) {
user_info->has_main_web_app = bot->has_main_web_app_; user_info->has_main_web_app = bot->has_main_web_app_;
user_info->has_topics = bot->has_topics_; user_info->has_topics = bot->has_topics_;
user_info->allows_users_to_create_topics = bot->allows_users_to_create_topics_; user_info->allows_users_to_create_topics = bot->allows_users_to_create_topics_;
user_info->can_manage_bots = bot->can_manage_bots_;
break; break;
} }
case td_api::userTypeDeleted::ID: case td_api::userTypeDeleted::ID:

@ -1024,6 +1024,7 @@ class Client final : public WebhookActor::Callback {
bool added_to_attachment_menu = false; bool added_to_attachment_menu = false;
bool has_topics = false; bool has_topics = false;
bool allows_users_to_create_topics = false; bool allows_users_to_create_topics = false;
bool can_manage_bots = false;
}; };
static void add_user(UserInfo *user_info, object_ptr<td_api::user> &&user); static void add_user(UserInfo *user_info, object_ptr<td_api::user> &&user);
UserInfo *add_user_info(int64 user_id); UserInfo *add_user_info(int64 user_id);

Loading…
Cancel
Save