For AI agents: the complete documentation index is available at https://surowan.com/llms.txt, the full documentation bundle is available at https://surowan.com/llms-full.txt, and this page is available as Markdown at https://surowan.com/docs/reference/fields-telegram.md.

文档对应源码提交: 55e5d96b5634。请先与自己的部署版本核对。

配置字段参考:telegram

本页由同一提交的 ConfigSchema 自动生成,属于配置字段参考。 必填是相对于所在对象而言;可选对象未启用时不要求它的子字段。 可选不等于有默认值,类型合法也不等于通过跨字段语义校验。默认行为、热更新与覆盖关系请读配置说明。

telegram

类型:object;可选。

telegram.token

类型:object / object / object;可选。

telegram.token(分支 1)

类型:object;可选。

telegram.token(分支 1).jar

类型:string;必填。

限制:pattern: "^[A-Za-z0-9_-]{1,64}$"。

telegram.token(分支 2)

类型:object;可选。

telegram.token(分支 2).env

类型:string;必填。

限制:pattern: "^[A-Za-z_][A-Za-z0-9_]*$"。

telegram.token(分支 3)

类型:object;可选。

telegram.token(分支 3).command

类型:array;必填。

限制:minItems: 1。

telegram.token(分支 3).command[]

类型:string;必填。

telegram.process_bot_messages

类型:boolean;必填。

telegram.sticker_trigger_enabled

类型:boolean;可选。

telegram.mention_typing_enabled

类型:boolean;可选。

telegram.bucket_window_seconds

类型:integer;必填。

限制:minimum: 0,maximum: 300。

telegram.bucket_max_seconds

类型:integer;可选。

限制:minimum: 0,maximum: 300。

telegram.bucket_bump_seconds

类型:integer;可选。

限制:minimum: 0,maximum: 300。

telegram.participation

类型:object;可选。

telegram.participation.ask_only

类型:boolean;可选。

telegram.participation.active_windows

类型:array;可选。

telegram.participation.active_windows[]

类型:object;必填。

telegram.participation.active_windows[].start

类型:string;必填。

限制:pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$"。

telegram.participation.active_windows[].end

类型:string;必填。

限制:pattern: "^(([01][0-9]|2[0-3]):[0-5][0-9]|24:00)$"。

telegram.participation.active_windows[].days

类型:array;可选。

限制:minItems: 1,uniqueItems: true。

telegram.participation.active_windows[].days[]

类型:integer;必填。

限制:minimum: 1,maximum: 7。

telegram.participation.trigger_keywords

类型:array;可选。

限制:uniqueItems: true。

telegram.participation.trigger_keywords[]

类型:string;必填。

限制:minLength: 1。

telegram.participation.attention_window_seconds

类型:integer;可选。

限制:minimum: 1,maximum: 86400。

telegram.proactive_reply

类型:object;可选。

telegram.proactive_reply.enabled

类型:boolean;可选。

telegram.proactive_reply.base_probability

类型:number;可选。

限制:minimum: 0,maximum: 1。

telegram.proactive_reply.increment

类型:number;可选。

限制:minimum: 0,maximum: 1。

telegram.proactive_reply.hard_pity

类型:integer;可选。

限制:minimum: 1,maximum: 100。

telegram.decision_gate

类型:object;可选。

telegram.decision_gate.enabled

类型:boolean;可选。

telegram.decision_gate.mode

类型:"shadow" / "enforce";可选。

telegram.decision_gate.threshold

类型:number;可选。

限制:minimum: 0,maximum: 1。

telegram.decision_gate.history_messages

类型:integer;可选。

限制:minimum: 0,maximum: 50。

telegram.decision_gate.pending_messages

类型:integer;可选。

限制:minimum: 1,maximum: 50。

telegram.decision_gate.instructions

类型:string;可选。

限制:minLength: 1。

telegram.decision_gate.model

类型:string;可选。

限制:minLength: 1。

telegram.decision_gate.base_url

类型:string;可选。

限制:minLength: 1。

telegram.decision_gate.api_key

类型:object / object / object;可选。

telegram.decision_gate.api_key(分支 1)

类型:object;可选。

telegram.decision_gate.api_key(分支 1).jar

类型:string;必填。

限制:pattern: "^[A-Za-z0-9_-]{1,64}$"。

telegram.decision_gate.api_key(分支 2)

类型:object;可选。

telegram.decision_gate.api_key(分支 2).env

类型:string;必填。

限制:pattern: "^[A-Za-z_][A-Za-z0-9_]*$"。

telegram.decision_gate.api_key(分支 3)

类型:object;可选。

telegram.decision_gate.api_key(分支 3).command

类型:array;必填。

限制:minItems: 1。

telegram.decision_gate.api_key(分支 3).command[]

类型:string;必填。

telegram.decision_gate.timeout_ms

类型:integer;可选。

限制:minimum: 500,maximum: 10000。

telegram.chats

类型:array;必填。

telegram.chats[]

类型:object;必填。

telegram.chats[].id

类型:integer;必填。

telegram.chats[].topic_ids

类型:array;可选。

限制:minItems: 1,uniqueItems: true。

telegram.chats[].topic_ids[]

类型:integer;必填。

限制:minimum: 1。

telegram.chats[].ignored_user_ids

类型:array;可选。

限制:uniqueItems: true。

telegram.chats[].ignored_user_ids[]

类型:integer;必填。

限制:minimum: 1。

telegram.chats[].timezone

类型:string;可选。

限制:minLength: 1。

telegram.chats[].instructions_file

类型:string;可选。

限制:minLength: 1。

telegram.chats[].group_memory

类型:object;可选。

telegram.chats[].group_memory.enabled

类型:boolean;必填。

telegram.chats[].group_memory.idle_minutes

类型:integer;可选。

限制:minimum: 1,maximum: 1440。

telegram.chats[].group_memory.thirty_hour_clock

类型:"off" / "non_overlapping" / "overlapping";可选。

telegram.chats[].participation

类型:object;可选。

telegram.chats[].participation.ask_only

类型:boolean;可选。

telegram.chats[].participation.active_windows

类型:array;可选。

telegram.chats[].participation.active_windows[]

类型:object;必填。

telegram.chats[].participation.active_windows[].start

类型:string;必填。

限制:pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$"。

telegram.chats[].participation.active_windows[].end

类型:string;必填。

限制:pattern: "^(([01][0-9]|2[0-3]):[0-5][0-9]|24:00)$"。

telegram.chats[].participation.active_windows[].days

类型:array;可选。

限制:minItems: 1,uniqueItems: true。

telegram.chats[].participation.active_windows[].days[]

类型:integer;必填。

限制:minimum: 1,maximum: 7。

telegram.chats[].participation.trigger_keywords

类型:array;可选。

限制:uniqueItems: true。

telegram.chats[].participation.trigger_keywords[]

类型:string;必填。

限制:minLength: 1。

telegram.chats[].participation.attention_window_seconds

类型:integer;可选。

限制:minimum: 1,maximum: 86400。

telegram.chats[].proactive_reply

类型:object;可选。

telegram.chats[].proactive_reply.enabled

类型:boolean;可选。

telegram.chats[].proactive_reply.base_probability

类型:number;可选。

限制:minimum: 0,maximum: 1。

telegram.chats[].proactive_reply.increment

类型:number;可选。

限制:minimum: 0,maximum: 1。

telegram.chats[].proactive_reply.hard_pity

类型:integer;可选。

限制:minimum: 1,maximum: 100。

telegram.chats[].decision_gate

类型:object;可选。

telegram.chats[].decision_gate.enabled

类型:boolean;可选。

telegram.chats[].decision_gate.mode

类型:"shadow" / "enforce";可选。

telegram.chats[].decision_gate.threshold

类型:number;可选。

限制:minimum: 0,maximum: 1。

telegram.chats[].decision_gate.history_messages

类型:integer;可选。

限制:minimum: 0,maximum: 50。

telegram.chats[].decision_gate.pending_messages

类型:integer;可选。

限制:minimum: 1,maximum: 50。

telegram.chats[].decision_gate.instructions

类型:string;可选。

限制:minLength: 1。

telegram.chats[].dictionary_injection_mode

类型:"off" / "on_demand" / "aggressive";可选。

telegram.chats[].mcp

类型:array;可选。

telegram.chats[].mcp[]

类型:object;必填。

telegram.chats[].mcp[].server

类型:string;必填。

限制:pattern: "^[A-Za-z][A-Za-z0-9_-]{0,63}$"。

telegram.chats[].mcp[].tools

类型:"*" / array;可选。

telegram.chats[].mcp[].tool_policies

类型:array;可选。

telegram.chats[].mcp[].tool_policies[]

类型:object;必填。

telegram.chats[].mcp[].tool_policies[].name

类型:string;必填。

限制:minLength: 1。

telegram.chats[].mcp[].tool_policies[].read_only

类型:boolean;必填。

telegram.chats[].mcp[].tool_policies[].timeout_seconds

类型:number;必填。

限制:exclusiveMinimum: 0。

telegram.chats[].provider

类型:string;可选。

限制:minLength: 1。

telegram.chats[].model

类型:string;可选。

限制:minLength: 1。

telegram.chats[].thinking_level

类型:"off" / "minimal" / "low" / "medium" / "high" / "xhigh" / "max";可选。

telegram.admins

类型:array;可选。

限制:uniqueItems: true。

telegram.admins[]

类型:integer;必填。

限制:minimum: 1。

telegram.sticker_sets

类型:array;可选。

telegram.sticker_sets[]

类型:object;必填。

telegram.sticker_sets[].alias

类型:string;必填。

限制:pattern: "^[A-Za-z][A-Za-z0-9_-]{0,63}$"。

telegram.sticker_sets[].name

类型:string;必填。

限制:minLength: 1。

telegram.sticker_sets[].note

类型:string;可选。

限制:minLength: 1。