mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-29 03:32:49 +01:00
update examples to telegram.ext
This commit is contained in:
parent
cd7bc8dfac
commit
af62c5be8e
4 changed files with 6 additions and 5 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue