Skip to content

Commit

Permalink
Fixed technical notification
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Jul 22, 2024
1 parent 0700658 commit 7b8e96d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Jobs/TelegramMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 7b8e96d

Please sign in to comment.