Skip to content

Commit

Permalink
Fix /cancelall
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentDemonSD authored Jun 15, 2023
1 parent 405f0d5 commit b28a4a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/modules/cancel_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async def cancel_all_update(_, query):


bot.add_handler(MessageHandler(cancel_mirror, filters=regex(
f"^/{BotCommands.CancelMirror}_?") & CustomFilters.authorized))
f"^/{BotCommands.CancelMirror}(_\w+)?(?!all)") & CustomFilters.authorized))
bot.add_handler(MessageHandler(cancell_all_buttons, filters=command(
BotCommands.CancelAllCommand) & CustomFilters.sudo))
bot.add_handler(CallbackQueryHandler(cancel_all_update, filters=regex(r"^canall") & CustomFilters.sudo))
bot.add_handler(CallbackQueryHandler(cancel_all_update, filters=regex(r"^canall")))

0 comments on commit b28a4a5

Please sign in to comment.