1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Fix /diario

This commit is contained in:
Steffo 2019-02-08 19:50:02 +01:00
parent 60f2b726f6
commit 0804e4cdee

View file

@ -260,10 +260,7 @@ def cmd_diario(bot: telegram.Bot, update: telegram.Update):
text=text)
session.add(diario)
session.commit()
reply(bot, update, strings.DIARIO.SUCCESS, diario=diario.to_html())
bot.send_message(update.message.chat.id,
f"✅ Riga [#{diario.id}](https://ryg.steffo.eu/diario#entry-{diario.id}) aggiunta al diario!",
parse_mode="Markdown", disable_web_page_preview=True)
reply(bot, update, strings.DIARIO.SUCCESS, diario=diario.to_telegram())
except Exception:
raise
finally: