Fix banChatMember for bots.
This commit is contained in:
parent
0c409cb79e
commit
b88f5ba6f3
@ -6272,7 +6272,6 @@ void Td::on_request(uint64 id, td_api::setChatMemberStatus &request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Td::on_request(uint64 id, const td_api::banChatMember &request) {
|
void Td::on_request(uint64 id, const td_api::banChatMember &request) {
|
||||||
CHECK_IS_USER();
|
|
||||||
CREATE_OK_REQUEST_PROMISE();
|
CREATE_OK_REQUEST_PROMISE();
|
||||||
contacts_manager_->ban_dialog_participant(DialogId(request.chat_id_), UserId(request.user_id_),
|
contacts_manager_->ban_dialog_participant(DialogId(request.chat_id_), UserId(request.user_id_),
|
||||||
request.banned_until_date_, request.revoke_messages_, std::move(promise));
|
request.banned_until_date_, request.revoke_messages_, std::move(promise));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user