update examples to telegram.ext

This commit is contained in:
Jannes Höke 2016-03-19 16:39:35 +01:00
parent cd7bc8dfac
commit af62c5be8e
4 changed files with 6 additions and 5 deletions

View file

@ -18,8 +18,8 @@ Reply to last chat from the command line by typing "/reply <text>"
Type 'stop' on the command line to stop the bot. Type 'stop' on the command line to stop the bot.
""" """
from telegram import Updater from telegram.ext import Updater
from telegram.dispatcher import run_async from telegram.ext.dispatcher import run_async
from time import sleep from time import sleep
import logging import logging

View file

@ -17,7 +17,7 @@ Press Ctrl-C on the command line or send a signal to the process to stop the
bot. bot.
""" """
from telegram import Updater from telegram.ext import Updater
import logging import logging
# Enable logging # Enable logging

View file

@ -20,7 +20,8 @@ from random import getrandbits
import re import re
from telegram import Updater, Update, InlineQueryResultArticle, ParseMode from telegram import InlineQueryResultArticle, ParseMode
from telegram.ext import Updater
import logging import logging
# Enable logging # Enable logging

View file

@ -18,7 +18,7 @@ Press Ctrl-C on the command line or send a signal to the process to stop the
bot. bot.
""" """
from telegram import Updater from telegram.ext import Updater
import logging import logging
# Enable logging # Enable logging