diff --git a/app/Jobs/TelegramMessage.php b/app/Jobs/TelegramMessage.php index fe812b69..39ff37d9 100644 --- a/app/Jobs/TelegramMessage.php +++ b/app/Jobs/TelegramMessage.php @@ -36,6 +36,10 @@ public function __construct(public Collection $message) */ public function handle(TelegramBot $telegramBot): void { + if (empty($this->from)) { + return; + } + // If the message is a reply to another message, it's likely not spam. // Let's not disrupt the conversation and ignore it. if ($this->message->has('reply_to_message')) {