fix: await _handle_callback in callback_router
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user