Update SlashBot.py

This commit is contained in:
Rongrong 2020-10-26 16:41:16 +08:00 committed by GitHub
parent a1b6a195c5
commit 49810eb5d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ def reply(update, context):
updater = Updater(token=Token, use_context=True)
dp = updater.dispatcher
dp.add_handler(MessageHandler(Filters.regex(r'^\/([^@]+)$'), reply))
dp.add_handler(MessageHandler(Filters.regex(parser), reply))
updater.start_polling()
updater.idle()