mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-02 17:02:56 +01:00
Merge pull request #65 from smaznet/patch-2
Fix filter for getChatMembers
This commit is contained in:
commit
538bf453c1
@ -8549,7 +8549,7 @@ td::Status Client::process_get_chat_members_query(PromisedQueryPtr &query) {
|
||||
td_api::object_ptr<td_api::SupergroupMembersFilter> 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<td_api::supergroupMembersFilterSearch>(query_.str());
|
||||
} else if (filter_name == "members" || filter_name == "participants") {
|
||||
filter = td_api::make_object<td_api::supergroupMembersFilterRecent>();
|
||||
|
Loading…
Reference in New Issue
Block a user