X Tutup
Skip to content

Commit af62c5b

Browse files
committed
update examples to telegram.ext
1 parent cd7bc8d commit af62c5b

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

examples/clibot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
Type 'stop' on the command line to stop the bot.
1919
"""
2020

21-
from telegram import Updater
22-
from telegram.dispatcher import run_async
21+
from telegram.ext import Updater
22+
from telegram.ext.dispatcher import run_async
2323
from time import sleep
2424
import logging
2525

examples/echobot2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
bot.
1818
"""
1919

20-
from telegram import Updater
20+
from telegram.ext import Updater
2121
import logging
2222

2323
# Enable logging

examples/inlinebot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
import re
2222

23-
from telegram import Updater, Update, InlineQueryResultArticle, ParseMode
23+
from telegram import InlineQueryResultArticle, ParseMode
24+
from telegram.ext import Updater
2425
import logging
2526

2627
# Enable logging

examples/timerbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
bot.
1919
"""
2020

21-
from telegram import Updater
21+
from telegram.ext import Updater
2222
import logging
2323

2424
# Enable logging

0 commit comments

Comments
 (0)
X Tutup