alicebot.adapter.telegram.config
Telegram 适配器配置
class Config
Bases: alicebot.config.ConfigModel
Telegram 适配器配置
Attributes
adapter_type (Literal['polling', 'webhook']) - 适配器运行模式
bot_token (str) - 从
BotFather
获取的 token 值。 参考:https://core.telegram.org/bots#how-do-i-create-a-botapi_server (str) - 自定义 API 服务器
webhook_host (str | None) - 自定义 Webhook 服务器地址
webhook_port (int | None) - 自定义 Webhook 服务器端口
webhook_url (str | None) - 自定义 Webhook 服务器路径
proxy (str | None) - 代理服务器地址,为空时表示不使用代理
api_timeout (int) - 进行 API 调用时等待返回响应的超时时间。