telegram does not like <br>

This commit is contained in:
j 2023-08-21 23:02:38 +02:00
parent d88dbaf8b7
commit 6018def64d

View file

@ -41,7 +41,7 @@ def announce_items():
preview_description=description,
)
if getattr(settings, "TELEGRAM_ANNOUNCE_CHANNEL"):
message = f'{item.title}<br><a href="{link}">{link}</a>'
message = f'{item.title}\n<a href="{link}">{link}</a>'
r = telegram_rpc.send(
message,
channel=settings.TELEGRAM_ANNOUNCE_CHANNEL,