Fix Telegram forum topic routing

This commit is contained in:
2569718930@qq.com
2026-06-14 05:45:07 +08:00
parent e783f35a4f
commit e6a5fd2dda
4 changed files with 66 additions and 32 deletions
+31 -31
View File
@@ -41,37 +41,37 @@ BOT_TOKEN = os.getenv("TELEGRAM_BOT_TOKEN", "").strip()
CHAT_ID = -1003927451869
CITIES: list[tuple[str, str]] = [
("🇰🇷 Seoul", "seoul"),
("🇰🇷 Busan", "busan"),
("🇯🇵 Tokyo", "tokyo"),
("🇨🇳 Beijing", "beijing"),
("🇨🇳 Shanghai", "shanghai"),
("🇨🇳 Guangzhou", "guangzhou"),
("🇨🇳 Shenzhen / Lau Fau Shan", "shenzhen"),
("🇨🇳 Qingdao", "qingdao"),
("🇨🇳 Chengdu", "chengdu"),
("🇨🇳 Chongqing", "chongqing"),
("🇨🇳 Wuhan", "wuhan"),
("🇭🇰 Hong Kong", "hong kong"),
("🇹🇼 Taipei", "taipei"),
("🇸🇬 Singapore", "singapore"),
("🇹🇷 Istanbul", "istanbul"),
("🇹🇷 Ankara", "ankara"),
("🇮🇱 Tel Aviv", "tel aviv"),
("🇫🇮 Helsinki", "helsinki"),
("🇳🇱 Amsterdam", "amsterdam"),
("🇫🇷 Paris", "paris"),
("🇺🇸 New York", "new york"),
("🇺🇸 Los Angeles", "los angeles"),
("🇺🇸 Chicago", "chicago"),
("🇺🇸 Denver", "denver"),
("🇺🇸 Atlanta", "atlanta"),
("🇺🇸 Miami", "miami"),
("🇺🇸 San Francisco", "san francisco"),
("🇺🇸 Houston", "houston"),
("🇺🇸 Dallas", "dallas"),
("🇺🇸 Austin", "austin"),
("🇺🇸 Seattle", "seattle"),
("#seoul", "seoul"),
("#busan", "busan"),
("#tokyo", "tokyo"),
("#beijing", "beijing"),
("#shanghai", "shanghai"),
("#guangzhou", "guangzhou"),
("#shenzhen #LauFauShan", "shenzhen"),
("#qingdao", "qingdao"),
("#chengdu", "chengdu"),
("#chongqing", "chongqing"),
("#wuhan", "wuhan"),
("#HongKong", "hong kong"),
("#taipei", "taipei"),
("#singapore", "singapore"),
("#istanbul", "istanbul"),
("#ankara", "ankara"),
("#TelAviv", "tel aviv"),
("#helsinki", "helsinki"),
("#amsterdam", "amsterdam"),
("#paris", "paris"),
("#NewYork", "new york"),
("#LosAngeles", "los angeles"),
("#chicago", "chicago"),
("#denver", "denver"),
("#atlanta", "atlanta"),
("#miami", "miami"),
("#SanFrancisco", "san francisco"),
("#houston", "houston"),
("#dallas", "dallas"),
("#austin", "austin"),
("#seattle", "seattle"),
]
URL = f"https://api.telegram.org/bot{BOT_TOKEN}/createForumTopic"