[M] Move starting code to main

This commit is contained in:
Hykilpikonna 2021-08-05 11:47:04 +08:00
parent 4e156ae91e
commit 98b8cb3da6
No known key found for this signature in database
GPG Key ID: 256CD01A41D7FA26

View File

@ -110,6 +110,7 @@ def reply(update, context):
update.effective_message.reply_text(text, parse_mode='Markdown')
if __name__ == '__main__':
updater = Updater(token=Token, use_context=True)
delUsername = re.compile('@' + updater.bot.username, re.I)
dp = updater.dispatcher