From 9e533bcdaeb5cc998dfa4a7ee9d606e1747121a6 Mon Sep 17 00:00:00 2001 From: Andrea Barbagallo Date: Thu, 4 May 2023 20:44:21 +0200 Subject: [PATCH] migliorata gestione canale avvisi --- edisubot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edisubot/bot.py b/edisubot/bot.py index 6076808..50b0f05 100644 --- a/edisubot/bot.py +++ b/edisubot/bot.py @@ -24,7 +24,7 @@ def getMessage(): def sostituisci_link_con_testo(m: Message): url: str = re.search(r'https:\/\/\S+', m.text).group(0) - new = re.sub(r"https:\/\/\S+", scrape(url)['testo'], m.text) + f"\n\nLeggi l'articolo sul sito EDISU qui." + new = re.sub(r"https:\/\/\S+", f"Leggi l'articolo sul sito EDISU qui.", m.html_text) bot.edit_message_text(new, m.chat.id, m.id)