Silence sendChatAction errors.

GitOrigin-RevId: 138ea490da2a7d59695c58332ac176abeb4efcd9
This commit is contained in:
levlam 2019-09-02 17:59:33 +03:00
parent a131af270a
commit 0d2df39a2e

View File

@ -21750,7 +21750,10 @@ void MessagesManager::send_dialog_action(DialogId dialog_id, const tl_object_ptr
auto can_send_status = can_send_message(dialog_id);
if (can_send_status.is_error()) {
return promise.set_error(can_send_status.move_as_error());
if (td_->auth_manager_->is_bot()) {
return promise.set_error(can_send_status.move_as_error());
}
return promise.set_value(Unit());
}
if (is_broadcast_channel(dialog_id)) {