fix add and remove commands
This commit is contained in:
parent
9cf948210b
commit
9e33150888
4
main.py
4
main.py
@ -254,9 +254,9 @@ if __name__ == '__main__':
|
||||
|
||||
updater.dispatcher.add_handler(CommandHandler('start', welcome, Filters.private))
|
||||
updater.dispatcher.add_handler(CommandHandler('stop', unsubscribe, Filters.private))
|
||||
updater.dispatcher.add_handler(CommandHandler('add', add_user, Filters.chat(MANAGEMENT_CHAT)))
|
||||
updater.dispatcher.add_handler(CommandHandler('add', add_user, Filters.chat(MANAGEMENT_CHAT), pass_args=True))
|
||||
updater.dispatcher.add_handler(CallbackQueryHandler(add_user, pattern=r'^add (\d+)$', pass_groups=True))
|
||||
updater.dispatcher.add_handler(CommandHandler('remove', remove_user, Filters.chat(MANAGEMENT_CHAT)))
|
||||
updater.dispatcher.add_handler(CommandHandler('remove', remove_user, Filters.chat(MANAGEMENT_CHAT), pass_args=True))
|
||||
updater.dispatcher.add_handler(CallbackQueryHandler(remove_user, pattern=r'^remove (\d+)$', pass_groups=True))
|
||||
updater.dispatcher.add_handler(CommandHandler('users', users, Filters.chat(MANAGEMENT_CHAT)))
|
||||
updater.dispatcher.add_handler(MessageHandler(Filters.private, msg))
|
||||
|
Loading…
Reference in New Issue
Block a user