From f84a2d09537ad9da3c3644a1c3231b5cd0122ef1 Mon Sep 17 00:00:00 2001 From: Rahiel Kasim Date: Thu, 28 Apr 2016 17:38:51 +0200 Subject: [PATCH] update example for snake_case interface --- website/static/website/example.py | 4 ++-- website/templates/website/index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/website/static/website/example.py b/website/static/website/example.py index 3ab51a1..2b1d11a 100644 --- a/website/static/website/example.py +++ b/website/static/website/example.py @@ -9,8 +9,8 @@ def hello(bot, update): updater = Updater('YOUR TOKEN HERE') -updater.dispatcher.addHandler(CommandHandler('start', start)) -updater.dispatcher.addHandler(CommandHandler('hello', hello)) +updater.dispatcher.add_handler(CommandHandler('start', start)) +updater.dispatcher.add_handler(CommandHandler('hello', hello)) updater.start_polling() updater.idle() diff --git a/website/templates/website/index.html b/website/templates/website/index.html index 11d22dc..e39a213 100644 --- a/website/templates/website/index.html +++ b/website/templates/website/index.html @@ -78,8 +78,8 @@

It's fun

updater = Updater('YOUR TOKEN HERE') -updater.dispatcher.addHandler(CommandHandler('start', start)) -updater.dispatcher.addHandler(CommandHandler('hello', hello)) +updater.dispatcher.add_handler(CommandHandler('start', start)) +updater.dispatcher.add_handler(CommandHandler('hello', hello)) updater.start_polling() updater.idle()