From 4df28c5676ad1ead2fe18d40c8ac26f160c9f336 Mon Sep 17 00:00:00 2001 From: SMAZNet Date: Thu, 1 Jul 2021 16:31:51 +0430 Subject: [PATCH] Fix filter for getChatMembers --- telegram-bot-api/Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index f02a7b2..05f23c5 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -8549,7 +8549,7 @@ td::Status Client::process_get_chat_members_query(PromisedQueryPtr &query) { td_api::object_ptr filter; td::string filter_name = td::to_lower(query->arg("filter")); auto query_ = query->arg("query"); - if (!query->empty()) { + if (!query_->empty()) { filter = td_api::make_object(query_.str()); } else if (filter_name == "members" || filter_name == "participants") { filter = td_api::make_object();