mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-24 16:17:37 +01:00
remove beta note
parent
c1fc9eb93e
commit
1789a67307
1 changed files with 3 additions and 3 deletions
|
@ -375,11 +375,11 @@ send_upload_photo_action = send_action(ChatAction.UPLOAD_PHOTO)
|
|||
With the above aliases, the following decorators are equivalent
|
||||
```python
|
||||
@send_typing_action
|
||||
def my_handler(bot, update):
|
||||
def my_handler(update, context):
|
||||
pass # user will see 'typing' while your bot is handling the request.
|
||||
|
||||
@send_action(ChatAction.TYPING)
|
||||
def my_handler(bot, update):
|
||||
def my_handler(update, context):
|
||||
pass # user will see 'typing' while your bot is handling the request.
|
||||
```
|
||||
All possible actions are documented [here](https://core.telegram.org/bots/api#sendchataction).
|
||||
|
@ -476,7 +476,7 @@ from threading import Thread
|
|||
# Other code
|
||||
|
||||
def main():
|
||||
updater = Updater("TOKEN")
|
||||
updater = Updater("TOKEN", context=True)
|
||||
dp = updater.dispatcher
|
||||
|
||||
# Add your other handlers here...
|
||||
|
|
Loading…
Reference in a new issue