mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
cast bugfix
This commit is contained in:
parent
ec27a59239
commit
35ba344f2c
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue