mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-12-17 23:24: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)
|
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:
|
||||||
|
|
Loading…
Reference in a new issue