Skip to content

Commit

Permalink
Changed not reaction for system message
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Mar 19, 2024
1 parent cb45ec2 commit bc3fc83
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Http/Controllers/WebHookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public function telegram(Request $request, TelegramBot $telegramBot): void
return;
}

if (empty($text)) {
$telegramBot->deleteMessage($chatId, $messageId);
return;
}

if (! $telegramBot->isSpam($text)) {
return;
}
Expand Down

0 comments on commit bc3fc83

Please sign in to comment.