1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-12-17 23:24: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) text=text)
session.add(diario) session.add(diario)
session.commit() session.commit()
reply(bot, update, strings.DIARIO.SUCCESS, diario=diario.to_html()) reply(bot, update, strings.DIARIO.SUCCESS, diario=diario.to_telegram())
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)
except Exception: except Exception:
raise raise
finally: finally: