fix: tighten callback pattern for id-based category routing

This commit is contained in:
Xiaolan Bot
2026-02-22 01:27:11 +08:00
parent 97bcee7258
commit 8354e38e89

View File

@@ -1373,7 +1373,7 @@ def main():
fallbacks=[CommandHandler('cancel', cancel)] fallbacks=[CommandHandler('cancel', cancel)]
) )
button_pattern = r'^(view_\d+|renewmanual_\d+|delete_\d+|confirmdelete_\d+|renewfromremind_\d+|list_subs_in_category_.+|list_categories|list_all_subs)$' button_pattern = r'^(view_\d+|renewmanual_\d+|delete_\d+|confirmdelete_\d+|renewfromremind_\d+|list_subs_in_category_id_\d+|list_categories|list_all_subs)$'
application.add_handler(CommandHandler('start', start)) application.add_handler(CommandHandler('start', start))
application.add_handler(CommandHandler('help', help_command)) application.add_handler(CommandHandler('help', help_command))