feat(config): 渲染默认 rich(用户要求 2026-09-14)

Config.rendering 默认 'html'→'rich';显式 'html'/'compat' 仍可强制兼容模式。
profile cordis.patch.yml 的 rendering 同步改为 rich(patch 会覆盖插件默认值,
两处都改才生效)。旧客户端显示'不支持'时用 /rich off 按聊天切回。
This commit is contained in:
dsh-agent
2026-09-16 10:42:45 +08:00
parent 5fa2827ed6
commit 4039dec03c
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -12,8 +12,8 @@ export interface TelegramChannelConfig {
allowAllUsers?: boolean
maxMessageLength?: number
pollingTimeoutSec?: number
/** 'rich' = Telegram native Rich Messages (needs a recent client);
* anything else (default) = HTML compatibility mode that renders on all clients. */
/** 默认 'rich' = Telegram native Rich Messages(需较新客户端);
* 显式 'html'/'compat' 等其它值 = 兼容模式,所有客户端可显示。 */
rendering?: string
}
@@ -23,7 +23,7 @@ export const Config: Schema<TelegramChannelConfig> = Schema.object({
allowAllUsers: Schema.boolean().default(false),
maxMessageLength: Schema.number().default(4096),
pollingTimeoutSec: Schema.number().default(30),
rendering: Schema.string().default('html'),
rendering: Schema.string().default('rich'),
})
function resolveAllowedUserIds(config: TelegramChannelConfig): number[] {