From 16c4be9e80612d095c4366c34a5fb02974bab093 Mon Sep 17 00:00:00 2001 From: Tom J Date: Thu, 10 Oct 2019 14:57:24 -0700 Subject: [PATCH] Typo, should be referring to Updater class. --- Transition-guide-to-Version-12.0.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Transition-guide-to-Version-12.0.md b/Transition-guide-to-Version-12.0.md index 436dab1..1a7df8a 100644 --- a/Transition-guide-to-Version-12.0.md +++ b/Transition-guide-to-Version-12.0.md @@ -58,12 +58,12 @@ def start(bot, update, args, job_queue): to the new style using CallbackContext ``` python -def start(update: Update, context: CallbackContext): +def start(update: Updater, context: CallbackContext): # Stuff here # args will be available as context.args # jobqueue will be available as context.jobqueue ``` -_On python 2 which doesn't support annotations replace `update: Update, context: CallbackContext` with simply `update, context`._ +_On python 2 which doesn't support annotations replace `update: Updater, context: CallbackContext` with simply `update, context`._ ## Error handler callbacks Error handler callbacks are the ones added using `Dispatcher.add_error_handler`. These have also been changed from the old form: