Replies: 1 comment
-
So theoretically, to get the However, it should be safe to expect that the user calling the callback is who should be replied to, not the user who sent the initial message. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looks like a simple change from
$message = $this->getMessage() ?: $this->getEditedMessage()
to
$message = $this->getMessage() ?? $this->getEditedMessage() ?? $this->getCallbackQuery()
on
core/src/Commands/Command.php
Line 441 in 34b1459
$this->replyToUser()
in commands called by callback queries with$this->getTelegram->executeCommand($command_name)
.Right now it throws error, since $message->getFrom() is null in that case.
Pro? Cons?
Beta Was this translation helpful? Give feedback.
All reactions