import { ConfigInput, ConfigSelect, ConfigTextarea, } from './NotifyChannelConfigControls' type ProviderFieldsProps = { config: Record updateConfig: (key: string, value: string) => void } const METHOD_OPTIONS = [ { value: 'POST', label: 'POST' }, { value: 'GET', label: 'GET' }, ] const TLS_OPTIONS = [ { value: 'true', label: '启用' }, { value: 'false', label: '关闭' }, ] export function TelegramFields({ config, updateConfig }: ProviderFieldsProps) { const control = { config, updateConfig } return ( <>
群组 ID、频道 ID 均为选填,可填一个、两个都填,也可以不填。管理功能始终仅管理员 Telegram ID 或已绑定的本地管理员可用;普通用户需要在已配置的群组或频道中,才能使用 /start 用户名 密码 绑定账号、切换隐藏成人媒体库和目录。不配置群组/频道时,普通用户不会被放行。若测试通知超时,可填写反代 API 地址或代理地址。
) } export function WechatFields({ config, updateConfig }: ProviderFieldsProps) { const control = { config, updateConfig } return ( ) } export function BarkFields({ config, updateConfig }: ProviderFieldsProps) { const control = { config, updateConfig } return ( <> ) } export function WebhookFields({ config, updateConfig }: ProviderFieldsProps) { const control = { config, updateConfig } return ( <> ) } export function EmailFields({ config, updateConfig }: ProviderFieldsProps) { const control = { config, updateConfig } return ( <>
) }