Created At: 2026-11-19T08:49:59Z Completed At: 2026-11-19T08:50:00Z Command exited with code 0. Command output: 262- callback_query = update_dict.get("callback_query") 263- 264- from_user = None 265- chat_id = None 266- text = "" 267- 268- if message: 269- from_user = message.get("from", {}) 270- chat_id = message.get("chat", {}).get("id") 271- text = message.get("text", "") 272: elif callback_query: 273- from_user = callback_query.get("from", {}) 274- chat_id = callback_query.get("message", {}).get("chat", {}).get("id") 275- text = callback_query.get("data", "") 276- 277- if not from_user or not chat_id: 278- return {"ok": True, "skipped": True} 279- 280- # 6. Upsert Telegram Bot User with automatic BCP 47 locale normalization 281- tg_uid = from_user.get("id") 282- detected_lang = from_user.get("language_code") -- 304- "username": user_record.username or "user", 305- "user_id": str(user_record.telegram_user_id), 306- "bot_name": f"@{bot.username}", 307- } 308- 309- # 7. Action Routing with Modular Feature Execution 310- module_service = BotModuleService(self.db) 311- studio_service = MessageStudioService(self.db) 312- 313- # 7.1 Handle Callback Queries (e.g. check_force_join, mod_*) 314: if callback_query: 315- if text == "check_force_join": 316- is_ok, prompt = await module_service.check_force_join(bot_id, raw_token, tg_uid) 317- if is_ok: 318- await TelegramApiService.send_message_with_retry( 319- raw_token=raw_token, 320- chat_id=chat_id, 321- text="✅ Channel Membership Verified! Welcome to the bot. Type /start to begin.", 322- parse_mode="HTML", 323- ) 324- try: