mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Fix /diario
This commit is contained in:
parent
60f2b726f6
commit
0804e4cdee
1 changed files with 1 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue