fix: await _handle_callback in callback_router

This commit is contained in:
2026-06-17 12:27:04 +02:00
parent 8307c6b844
commit 9ee5644a99
+1 -1
View File
@@ -435,7 +435,7 @@ async def text_input_handler(update: Update, context: ContextTypes.DEFAULT_TYPE)
async def callback_router(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
"""Route all callback queries by prefix pattern."""
try:
_handle_callback(update, context)
await _handle_callback(update, context)
except Exception:
logger.exception("Callback handler error for %s", update.callback_query.data if update.callback_query else "unknown")