From: Aleksey Filippov Date: Fri, 4 Jul 2025 16:01:22 +0000 (+0300) Subject: [BC-278] Отправка сообщения в Телеграм X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=e13baf38c887316ef99fce317da8769d915a8752;p=erp24_rep%2Fyii-erp24%2F.git [BC-278] Отправка сообщения в Телеграм --- diff --git a/erp24/commands/CronController.php b/erp24/commands/CronController.php index af06c232..a43c9f7f 100644 --- a/erp24/commands/CronController.php +++ b/erp24/commands/CronController.php @@ -712,11 +712,20 @@ class CronController extends Controller $messageData = []; $messageData['chat_id'] = $telegramUser['chat_id']; $messageData['phone'] = $telegramUser['phone']; + $this->stdout( + "Рассылка телеграма {$toSend[0]['chat_id']} . 1 \n", + BaseConsole::FG_GREEN + ); Yii::$app->queue->push(new SendTelegramPromoMessageJob([ 'messageData' => $messageData, ])); + $this->stdout( + "Рассылка телеграма {$toSend[0]['chat_id']} . 2\n", + BaseConsole::FG_GREEN + ); + } } }