From 35ba344f2c319593389b934ddce9cf84940c9219 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 15 Feb 2019 13:44:01 +0100 Subject: [PATCH] cast bugfix --- telegrambot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegrambot.py b/telegrambot.py index 98d9c315..3b6429f9 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -184,7 +184,7 @@ def cmd_cast(bot: telegram.Bot, update: telegram.Update, session: db.Session): # Find a target for the spell target = random.sample(session.query(db.Telegram).all(), 1)[0] # END - bot.send_message(update.message.chat.id, cast.cast(spell_name=spell, + bot.send_message(update.message.chat.id, cast(spell_name=spell, target_name=target.username if target.username is not None else target.first_name, platform="telegram"), parse_mode="HTML")