I'm trying to automate publishing some texts in Telegram using Telegraph and Python. I need to make links that will be clickable on Telegraph.
I made this only for Telegraph file with one link. Here is the code:
from telegraph import Telegraph
from telegraph.utils import html_to_content
telegraph = Telegraph('<access_token>')
account = telegraph.create_account(short_name='216')
html_string = '<a href="https://www.hse.ru">school</a>'
content = html_to_content(html_string)
new_page = telegraph.create_page(title="Formed Digest", content=content)
print(new_page[1])
But I need to have some other text that will not be clickable.