Skip to content

Commit b31168d

Browse files
committed
fix: update notifyChatIds parsing to use Notifier class
1 parent 8e7c987 commit b31168d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Structures/TelegramBot.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace CSlant\TelegramGitNotifier\Structures;
44

5+
use CSlant\TelegramGitNotifier\Notifier;
56
use Telegram;
67

78
trait TelegramBot
@@ -25,7 +26,7 @@ public function isNotifyChat(): bool
2526
{
2627
$chatIds = config('telegram-git-notifier.bot.notify_chat_ids');
2728

28-
$notifyChatIds = ChatTarget::parseNotifyChatIds($chatIds);
29+
$notifyChatIds = Notifier::parseNotifyChatIds($chatIds);
2930

3031
return in_array((string) $this->telegram->ChatID(), $notifyChatIds, true);
3132
}

0 commit comments

Comments
 (0)