* docs(navigation): canonicalize paths and align zh nav * chore(docs): remove stray .DS_Store * docs(scripts): add non-mint docs link audit * docs(nav): fix zh source paths and preserve legacy redirects (#11428) (thanks @sebslight) * chore(docs): satisfy lint for docs link audit script (#11428) (thanks @sebslight)
1.2 KiB
1.2 KiB
read_when, summary, title, x-i18n
| read_when | summary | title | x-i18n | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Telegram 允许列表加固:前缀 + 空白规范化 | Telegram 允许列表加固 |
|
Telegram 允许列表加固
日期:2026-01-05
状态:已完成
PR:#216
摘要
Telegram 允许列表现在不区分大小写地接受 telegram: 和 tg: 前缀,并容忍意外的空白。这使入站允许列表检查与出站发送规范化保持一致。
更改内容
- 前缀
telegram:和tg:被同等对待(不区分大小写)。 - 允许列表条目会被修剪;空条目会被忽略。
示例
以下所有形式都被接受为同一 ID:
telegram:123456TG:123456tg:123456
为什么重要
从日志或聊天 ID 复制/粘贴通常会包含前缀和空白。规范化可避免在决定是否在私信或群组中响应时出现误判。