Skip to content

Commit 0426799

Browse files
committed
add import
1 parent e617215 commit 0426799

File tree

2 files changed

+79
-17
lines changed

2 files changed

+79
-17
lines changed

.idea/workspace.xml

Lines changed: 77 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
55
import logging
6-
6+
import translator
77

88
# Enable logging
99
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
@@ -35,7 +35,7 @@ def error(bot, update, error):
3535

3636
def translate(bot, update):
3737
text = update.message.text
38-
result = get_content(text, '1')
38+
result = translator.get_content(text, '1')
3939
update.message.reply_text(str(result['data']['trans_text']))
4040

4141

0 commit comments

Comments
 (0)