Skip to content

Commit

Permalink
Make processing async
Browse files Browse the repository at this point in the history
  • Loading branch information
Biunovich committed Apr 6, 2024
1 parent 74fea6d commit 2e0189c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def clean(update: Update, context: ContextTypes.DEFAULT_TYPE):
context.user_data["messages"] = []
await update.message.reply_text("Message history was cleaned!")

application = Application.builder().token(telegram_token).build()
application = Application.builder().token(telegram_token).concurrent_updates(True).build()
application.add_handler(
MessageHandler(filters.TEXT & ~filters.COMMAND & filters.User(user_id=allowed_users, allow_empty=True), handle_message)
)
Expand Down

0 comments on commit 2e0189c

Please sign in to comment.