fix: show telegram chat channel (#16125)

### What problem does this PR solve?
Show Telegram in the chat channel picker alongside the existing Discord
and Feishu entries.

### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
buua436
2026-06-17 14:18:16 +08:00
committed by GitHub
parent 78b4906f7a
commit 486b28c409

View File

@@ -58,7 +58,12 @@ const ChatChannel = () => {
const { chatChannelInfo } = useChatChannelInfo();
const channelTemplates: IChatChannelInfo[] = Object.values(ChatChannelKey)
.filter(
(id) => [ChatChannelKey.DISCORD, ChatChannelKey.FEISHU].includes(id), // Show only Discord and Feishu
(id) =>
[
ChatChannelKey.DISCORD,
ChatChannelKey.FEISHU,
ChatChannelKey.TELEGRAM,
].includes(id), // Show only Discord and Feishu
)
.map((id) => ({
id,