From 4df28c5676ad1ead2fe18d40c8ac26f160c9f336 Mon Sep 17 00:00:00 2001 From: SMAZNet Date: Thu, 1 Jul 2021 16:31:51 +0430 Subject: [PATCH 1/2] 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(); From c0021e1d675d64a8cf20d71fe076c5c2de49db7e Mon Sep 17 00:00:00 2001 From: SMAZNet Date: Thu, 1 Jul 2021 17:00:55 +0430 Subject: [PATCH 2/2] Update Client.cpp --- 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 05f23c5..d9e2a55 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();