mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix forward of a bot message with a game from a group.
This commit is contained in:
parent
c5c94276c2
commit
4dd58b79e9
1 changed files with 5 additions and 3 deletions
|
@ -602,9 +602,11 @@ HistoryMessage::HistoryMessage(
|
||||||
if (const auto fwdViaBot = original->viaBot()) {
|
if (const auto fwdViaBot = original->viaBot()) {
|
||||||
config.viaBotId = peerToUser(fwdViaBot->id);
|
config.viaBotId = peerToUser(fwdViaBot->id);
|
||||||
} else if (originalMedia && originalMedia->game()) {
|
} else if (originalMedia && originalMedia->game()) {
|
||||||
if (const auto user = original->history()->peer->asUser()) {
|
if (const auto sender = original->senderOriginal()) {
|
||||||
if (user->isBot()) {
|
if (const auto user = sender->asUser()) {
|
||||||
config.viaBotId = peerToUser(user->id);
|
if (user->isBot()) {
|
||||||
|
config.viaBotId = peerToUser(user->id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue