mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 00:27:46 +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
|
With the above aliases, the following decorators are equivalent
|
||||||
```python
|
```python
|
||||||
@send_typing_action
|
@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.
|
pass # user will see 'typing' while your bot is handling the request.
|
||||||
|
|
||||||
@send_action(ChatAction.TYPING)
|
@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.
|
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).
|
All possible actions are documented [here](https://core.telegram.org/bots/api#sendchataction).
|
||||||
|
@ -476,7 +476,7 @@ from threading import Thread
|
||||||
# Other code
|
# Other code
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
updater = Updater("TOKEN")
|
updater = Updater("TOKEN", context=True)
|
||||||
dp = updater.dispatcher
|
dp = updater.dispatcher
|
||||||
|
|
||||||
# Add your other handlers here...
|
# Add your other handlers here...
|
||||||
|
|
Loading…
Reference in a new issue