diff options
| -rw-r--r-- | telegram-bot-api/Client.cpp | 2 | ||||
| -rw-r--r-- | telegram-bot-api/Client.h | 1 |
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); |
