Skip to content

Commit

Permalink
Changed not remove empty messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Mar 20, 2024
1 parent feb60bf commit b2f94b4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/Http/Controllers/WebHookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ 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 b2f94b4

Please sign in to comment.