Skip to content

Commit e645c91

Browse files
committed
TASK: Avoid usage of send_message
fixes #44
1 parent 1333de8 commit e645c91

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,11 @@ def game_commands(bot, update):
292292

293293
if user.get_state() == UserState.COMMENTING:
294294
# User wants to comment!
295-
send_message(chat_id, translate("userComment", lang_id))
295+
bot.sendMessage(chat_id, text=translate("userComment", lang_id))
296296
for admin_id in db.get_admins():
297-
send_message(admin_id,
298-
"New comment:\n\n{}\n\n{} | {} | {} | @{} | {}".format(text, user_id, first_name, last_name,
299-
username, lang_id))
297+
admin_message = "New comment:\n\n{}\n\n{} | {} | {} | @{} | {}".format(text, user_id, first_name, last_name,
298+
username, lang_id)
299+
bot.sendMessage(admin_id, text=admin_message)
300300

301301
user.set_state(UserState.IDLE)
302302
return

0 commit comments

Comments
 (0)