aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2026-05-27 14:38:48 +0300
committerlevlam <levlam@telegram.org>2026-05-27 14:38:48 +0300
commit56bfddd8ce348350ab7c1ee4cbdbe5e927fd2d5a (patch)
tree8c219767c7b282ccf2379d930ceec65856a05eb8
parentae277e10b298af357fa2a4416a0f1e78ccf16132 (diff)
Add User.supports_join_request_queries.
-rw-r--r--telegram-bot-api/Client.cpp2
-rw-r--r--telegram-bot-api/Client.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp
index 85f453d..72a3101 100644
--- a/telegram-bot-api/Client.cpp
+++ b/telegram-bot-api/Client.cpp
@@ -493,6 +493,7 @@ class Client::JsonUser final : public td::Jsonable {
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));
+ object("supports_join_request_queries", td::JsonBool(user_info->is_guard));
}
}
@@ -16581,6 +16582,7 @@ void Client::add_user(UserInfo *user_info, object_ptr<td_api::user> &&user) {
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_;
+ user_info->is_guard = bot->is_guard_;
break;
}
case td_api::userTypeDeleted::ID:
diff --git a/telegram-bot-api/Client.h b/telegram-bot-api/Client.h
index b21a551..e542ad1 100644
--- a/telegram-bot-api/Client.h
+++ b/telegram-bot-api/Client.h
@@ -1069,6 +1069,7 @@ class Client final : public WebhookActor::Callback {
bool has_topics = false;
bool allows_users_to_create_topics = false;
bool can_manage_bots = false;
+ bool is_guard = false;
};
static void add_user(UserInfo *user_info, object_ptr<td_api::user> &&user);
UserInfo *add_user_info(int64 user_id);