Skip to content

Commit

Permalink
fix #353
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-ivona committed Mar 7, 2023
1 parent 9df5032 commit 2bc8294
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Handlers/WebhookHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,13 @@ protected function deleteKeyboard(): void

protected function reply(string $message, bool $showAlert = false): void
{
$this->bot->replyWebhook($this->callbackQueryId, $message, $showAlert)->send();
if (isset($this->callbackQueryId)) {
$this->bot->replyWebhook($this->callbackQueryId, $message, $showAlert)->send();

return;
}

$this->chat->message($message)->send();
}

public function chatid(): void
Expand Down

0 comments on commit 2bc8294

Please sign in to comment.