Skip to content

Commit

Permalink
fix bug in send message to admin when too long
Browse files Browse the repository at this point in the history
  • Loading branch information
saber13812002 committed Nov 6, 2023
1 parent 449678b commit ace5aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Helpers/BotHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ public static function sendMessageToUserAndAdmins(Telegram $bot, string $message
{
// BotHelper::sendMessage($bot, $message);
BotHelper::sendLongMessage($message, $bot);
$message = strlen($message) > 4000 ? substr($message, 4000) : $message;
$message = strlen($message) > 4000 ? substr($message, 0, 4000) : $message;
BotHelper::sendMessageToSuperAdmin($message . StringHelper::insertTextForAdmin($bot, $type), 'bale');
BotHelper::sendMessageToSuperAdmin($message . StringHelper::insertTextForAdmin($bot, $type), 'telegram');
}
Expand Down

0 comments on commit ace5aba

Please sign in to comment.