Skip to content

Commit

Permalink
migliorata gestione canale avvisi
Browse files Browse the repository at this point in the history
  • Loading branch information
barbax7 committed May 4, 2023
1 parent 1c14580 commit 9e533bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edisubot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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\n<a href='{url}'>Leggi l'articolo sul sito EDISU qui.</a>"
new = re.sub(r"https:\/\/\S+", f"<a href='{url}'>Leggi l'articolo sul sito EDISU qui.</a>", m.html_text)

bot.edit_message_text(new, m.chat.id, m.id)

Expand Down

0 comments on commit 9e533bc

Please sign in to comment.