From 1789a673078c7ff83b2bed7aa16a1287ee8705ee Mon Sep 17 00:00:00 2001 From: Poolitzer <25934244+Poolitzer@users.noreply.github.com> Date: Sat, 4 Jan 2020 00:43:20 -0800 Subject: [PATCH] remove beta note --- Code-snippets.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Code-snippets.md b/Code-snippets.md index e11b79f..90ab98a 100644 --- a/Code-snippets.md +++ b/Code-snippets.md @@ -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...