Skip to content

Commit 4b7c958

Browse files
tanhongitCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5210f63 commit 4b7c958

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Structures/TelegramBot.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public function isNotifyChat(): bool
2525
{
2626
$chatIds = config('telegram-git-notifier.bot.notify_chat_ids');
2727

28-
return in_array((string) $this->telegram->ChatID(), (array) $chatIds, true);
28+
$notifyChatIds = ChatTarget::parseNotifyChatIds($chatIds);
29+
30+
return in_array((string) $this->telegram->ChatID(), $notifyChatIds, true);
2931
}
3032
}

0 commit comments

Comments
 (0)