Merge branch 'feature/memory-redacted'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lia Schöneweiß
2023-11-18 12:48:38 +01:00
3 changed files with 31 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
from datetime import time, timedelta, timezone, datetime, date
from telegram.constants import ParseMode
import os
from peewee import fn
import logging
@@ -48,7 +49,8 @@ class RandomMemoryJob():
caption =
f"On {chosen_entry.date_pretty}, "
f"{chosen_entry.author} wrote: \n"
f"{chosen_entry.text}"
f"{chosen_entry.spoiler_text}",
parse_mode=ParseMode.HTML
)
else:
await self.bot.send_message(
@@ -56,6 +58,7 @@ class RandomMemoryJob():
text =
f"On {chosen_entry.date_pretty}, "
f"{chosen_entry.author} wrote: \n"
f"{chosen_entry.text}"
f"{chosen_entry.spoiler_text}",
parse_mode=ParseMode.HTML
)