From 31dac0c75ccc3f4faf98528a16168c0a50d04bfe Mon Sep 17 00:00:00 2001 From: Nikolai Kruglikov Date: Mon, 1 Feb 2021 09:38:47 +0300 Subject: [PATCH] Updated Performance Optimizations (markdown) --- Performance-Optimizations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Performance-Optimizations.md b/Performance-Optimizations.md index 34f3419..cfb1d52 100644 --- a/Performance-Optimizations.md +++ b/Performance-Optimizations.md @@ -30,7 +30,7 @@ So, how do you get around that? Note that I said **by default**. To solve this k I don't want to bore you with *words* any further, so let's see some code! Sticking with the Echobot example, this is how you can mark the `echo` function to run in a thread: ```python -dispatcher.add_handler(MessagHandler(Filters.text & ~Filters.command, echo, run_async=True)) +dispatcher.add_handler(MessageHandler(Filters.text & ~Filters.command, echo, run_async=True)) ``` Simple and straightforward, right? So, why did I bore you with all that stuff before?