Skip to content

Commit 988a3f5

Browse files
committed
TASK: Reformat code
1 parent 306ecdf commit 988a3f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ def answer(bot, update):
223223
except:
224224
return
225225

226-
answer = translate("answerFromDev", db.get_lang_id(user_id)) + "\n\n" + text
227-
send_message(user_id, answer)
228-
send_message(sender_id, "Message sent!")
226+
answer_text = "{}\n\n{}".format(translate("answerFromDev", db.get_lang_id(user_id)), text)
227+
bot.sendMessage(chat_id=user_id, text=answer_text)
228+
bot.sendMessage(chat_id=sender_id, text="Message sent!")
229229

230230

231231
def mentions(bot, update):

0 commit comments

Comments
 (0)