[*] MQ временное логирование
This commit is contained in:
1 parent
0d0d2c849a
commit
467c3bedec
2 files changed
+10
-1
No files matched your search
+8
-1
@@ -105,11 +105,18 @@
|
||||
}
|
||||
|
||||
// debug
|
||||
function sendTelegram(?string $message): void
|
||||
function sendTelegram(?string $message, ?string $file = null): void
|
||||
{
|
||||
(new \Core\ExternalServices\TelegramSender(TELEGRAM_BOT_TOKEN))
|
||||
->setChat(TELEGRAM_NOTIFICATION_CHANNEL)
|
||||
->sendMessage($message);
|
||||
|
||||
if(!empty($file)) {
|
||||
(new \Core\ExternalServices\TelegramSender(TELEGRAM_BOT_TOKEN))
|
||||
->setChat(TELEGRAM_NOTIFICATION_CHANNEL)
|
||||
->sendDocument($file);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//end debug
|
||||
|
||||
Reference in new issue
Block a user