mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-24 16:17:37 +01:00
Updated Performance Optimizations (markdown)
parent
26333c9928
commit
31dac0c75c
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue