mirror of
https://github.com/Rongronggg9/SlashBot.git
synced 2025-02-06 17:23:28 +08:00
make command async
This commit is contained in:
parent
6de1d13cd0
commit
42c9e1daa6
@ -137,7 +137,7 @@ if __name__ == '__main__':
|
||||
updater = Updater(token=Token, use_context=True, request_kwargs={'proxy_url': telegram_proxy})
|
||||
delUsername = re.compile('@' + updater.bot.username, re.I).sub
|
||||
dp = updater.dispatcher
|
||||
dp.add_handler(MessageHandler(Filters.regex(parser), reply))
|
||||
dp.add_handler(MessageHandler(Filters.regex(parser), reply, run_async=True))
|
||||
|
||||
updater.start_polling()
|
||||
updater.idle()
|
||||
|
Loading…
Reference in New Issue
Block a user