]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[BC-278] Отправка сообщения в Телеграм
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Fri, 4 Jul 2025 16:04:01 +0000 (19:04 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Fri, 4 Jul 2025 16:04:01 +0000 (19:04 +0300)
erp24/services/TelegramService.php

index fff601b182356ec48e660b200498c381e829aef6..8289a8fd3d96f9236ce77f09aff2320c86cac665 100644 (file)
@@ -160,7 +160,7 @@ class TelegramService
                 $res1 = curl_exec($ch);
                 curl_close($ch);
 
-//                echo $res1;
+                echo $res1;
 
                 $arrayQuery2 = [
                     'chat_id' => $chatId,
@@ -178,9 +178,10 @@ class TelegramService
                 $res2 = curl_exec($ch);
                 curl_close($ch);
 
-//                echo $res2;
+                echo $res2;
 
             } catch (\Exception $e) {
+
                 Yii::error("Ошибка отправки сообщения в Telegram: " . $e->getMessage(), 'telegram');
             }
             $result = 'OK';