mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-24 11:45:51 +01:00
Remove unneeded check for unavailable supergroup member count.
This commit is contained in:
parent
0256738f23
commit
d598402a3c
@ -3241,9 +3241,6 @@ class Client::TdOnGetSupergroupMembersCountCallback : public TdQueryCallback {
|
||||
|
||||
CHECK(result->get_id() == td_api::supergroupFullInfo::ID);
|
||||
auto supergroup_full_info = move_object_as<td_api::supergroupFullInfo>(result);
|
||||
if (supergroup_full_info->member_count_ == 0) {
|
||||
return fail_query(400, "Bad Request: need administrator rights", std::move(query_));
|
||||
}
|
||||
return answer_query(td::VirtuallyJsonableInt(supergroup_full_info->member_count_), std::move(query_));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user