Skip to content

Commit bc3fc83

Browse files
committed
Changed not reaction for system message
1 parent cb45ec2 commit bc3fc83

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/Http/Controllers/WebHookController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ public function telegram(Request $request, TelegramBot $telegramBot): void
2828
return;
2929
}
3030

31+
if (empty($text)) {
32+
$telegramBot->deleteMessage($chatId, $messageId);
33+
return;
34+
}
35+
3136
if (! $telegramBot->isSpam($text)) {
3237
return;
3338
}

0 commit comments

Comments
 (0)