From af62c5be8e31bcdedef7411d6d73b754b508dadb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Sat, 19 Mar 2016 16:39:35 +0100 Subject: [PATCH] update examples to telegram.ext --- examples/clibot.py | 4 ++-- examples/echobot2.py | 2 +- examples/inlinebot.py | 3 ++- examples/timerbot.py | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/clibot.py b/examples/clibot.py index 675ff238c..65c4b61a9 100644 --- a/examples/clibot.py +++ b/examples/clibot.py @@ -18,8 +18,8 @@ Reply to last chat from the command line by typing "/reply " Type 'stop' on the command line to stop the bot. """ -from telegram import Updater -from telegram.dispatcher import run_async +from telegram.ext import Updater +from telegram.ext.dispatcher import run_async from time import sleep import logging diff --git a/examples/echobot2.py b/examples/echobot2.py index 4d29d45af..2a4f57fce 100644 --- a/examples/echobot2.py +++ b/examples/echobot2.py @@ -17,7 +17,7 @@ Press Ctrl-C on the command line or send a signal to the process to stop the bot. """ -from telegram import Updater +from telegram.ext import Updater import logging # Enable logging diff --git a/examples/inlinebot.py b/examples/inlinebot.py index f7bce001a..9df1bd3bc 100644 --- a/examples/inlinebot.py +++ b/examples/inlinebot.py @@ -20,7 +20,8 @@ from random import getrandbits import re -from telegram import Updater, Update, InlineQueryResultArticle, ParseMode +from telegram import InlineQueryResultArticle, ParseMode +from telegram.ext import Updater import logging # Enable logging diff --git a/examples/timerbot.py b/examples/timerbot.py index 8d28ae592..d6fef455f 100644 --- a/examples/timerbot.py +++ b/examples/timerbot.py @@ -18,7 +18,7 @@ Press Ctrl-C on the command line or send a signal to the process to stop the bot. """ -from telegram import Updater +from telegram.ext import Updater import logging # Enable logging