Add User.allows_users_to_create_topics.

main
levlam 4 months ago
parent e1793ceaa9
commit 6e4fd7be66

@ -469,6 +469,7 @@ class Client::JsonUser final : public td::Jsonable {
object("can_connect_to_business", td::JsonBool(user_info->can_connect_to_business));
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));
}
}
@ -15752,6 +15753,7 @@ void Client::add_user(UserInfo *user_info, object_ptr<td_api::user> &&user) {
user_info->can_connect_to_business = bot->can_connect_to_business_;
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_;
break;
}
case td_api::userTypeDeleted::ID:

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

Loading…
Cancel
Save