dsh-im-ops/plugin-src/client/channels/telegram/index.js
2026-08-16 14:47:16 +08:00

25 lines
892 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { TelegramLogoGlyph } from '../../channel-logos.js';
import { createTokenChannelSettings } from '../shared/token-channel.js';
import {
TELEGRAM_ENDPOINTS,
telegramClientApi,
} from './api.js';
import { installTelegramStyles } from './styles.js';
const channel = createTokenChannelSettings({
channel: 'Telegram',
endpoints: TELEGRAM_ENDPOINTS,
api: telegramClientApi,
LogoGlyph: TelegramLogoGlyph,
installStyles: installTelegramStyles,
pageClass: 'dtg-page',
avatarClass: 'dtg-avatar',
connectionLabel: 'Bot API 长轮询',
tokenPlaceholder: '填写 @BotFather 生成的 Bot Token',
emptyTitle: '接入 Telegram 机器人',
emptyDescription: '先通过 @BotFather 获取 Bot Token,再在这里完成接入。',
platformLabel: 'Telegram',
});
export const TelegramSettingsTab = channel.SettingsTab;
export const TelegramAccountCard = channel.AccountCard;