Silence sendChatAction errors.
GitOrigin-RevId: 138ea490da2a7d59695c58332ac176abeb4efcd9
This commit is contained in:
parent
a131af270a
commit
0d2df39a2e
@ -21750,8 +21750,11 @@ void MessagesManager::send_dialog_action(DialogId dialog_id, const tl_object_ptr
|
|||||||
|
|
||||||
auto can_send_status = can_send_message(dialog_id);
|
auto can_send_status = can_send_message(dialog_id);
|
||||||
if (can_send_status.is_error()) {
|
if (can_send_status.is_error()) {
|
||||||
|
if (td_->auth_manager_->is_bot()) {
|
||||||
return promise.set_error(can_send_status.move_as_error());
|
return promise.set_error(can_send_status.move_as_error());
|
||||||
}
|
}
|
||||||
|
return promise.set_value(Unit());
|
||||||
|
}
|
||||||
|
|
||||||
if (is_broadcast_channel(dialog_id)) {
|
if (is_broadcast_channel(dialog_id)) {
|
||||||
return promise.set_value(Unit());
|
return promise.set_value(Unit());
|
||||||
|
Loading…
Reference in New Issue
Block a user