diff --git a/Telegram/SourceFiles/api/api_sending.cpp b/Telegram/SourceFiles/api/api_sending.cpp index 8655619c0a..fd324adf79 100644 --- a/Telegram/SourceFiles/api/api_sending.cpp +++ b/Telegram/SourceFiles/api/api_sending.cpp @@ -44,7 +44,10 @@ void InnerFillMessagePostFlags( if (ShouldSendSilent(peer, options)) { flags |= MessageFlag::Silent; } - if (!peer->amAnonymous()) { + if (!peer->amAnonymous() + || (!peer->isBroadcast() + && options.sendAs + && options.sendAs != peer)) { flags |= MessageFlag::HasFromId; } const auto channel = peer->asBroadcast();