From 174021ab5d79504f7fa747af2f55c2e8c27cf905 Mon Sep 17 00:00:00 2001 From: anazaryan Date: Thu, 28 Nov 2024 21:53:34 +0400 Subject: [PATCH] fix telegram --- app/Components/Integrations/Telegram/VacancyChannel.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Components/Integrations/Telegram/VacancyChannel.php b/app/Components/Integrations/Telegram/VacancyChannel.php index f2b58c9..a569153 100644 --- a/app/Components/Integrations/Telegram/VacancyChannel.php +++ b/app/Components/Integrations/Telegram/VacancyChannel.php @@ -33,6 +33,10 @@ class VacancyChannel $chatId = $update->message->chat->id; \Cache::set(self::REKAMORE_CHANNEL_ID, $chatId, null); break; + } elseif ($update->channel_post?->chat->title === config('services.telegram.chat_title')) { + $chatId = $update->channel_post->chat->id; + \Cache::set(self::REKAMORE_CHANNEL_ID, $chatId, null); + break; } } -- 1.7.10.4