mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-24 03:35:52 +01:00
Allow to leave deactivated basic groups independently from supergroups.
This commit is contained in:
parent
ab8edb4de7
commit
ad55377cba
@ -7247,7 +7247,7 @@ td::Status Client::process_get_chat_member_count_query(PromisedQueryPtr &query)
|
||||
td::Status Client::process_leave_chat_query(PromisedQueryPtr &query) {
|
||||
auto chat_id = query->arg("chat_id");
|
||||
|
||||
check_chat(chat_id, AccessRights::ReadMembers, std::move(query), [this](int64 chat_id, PromisedQueryPtr query) {
|
||||
check_chat(chat_id, AccessRights::Read, std::move(query), [this](int64 chat_id, PromisedQueryPtr query) {
|
||||
send_request(make_object<td_api::leaveChat>(chat_id), std::make_unique<TdOnOkQueryCallback>(std::move(query)));
|
||||
});
|
||||
return Status::OK();
|
||||
|
Loading…
Reference in New Issue
Block a user