from telegraph import Telegraph
tph = Telegraph()
tph.create_account(short_name='Winchestor*', author_name='o', author_url='https://t.me/Winchestor0608')
resp = tph.create_page(
'Hey',
html_content="<p>Hello, World</p>"
)
print(f'https://telegra.ph/{resp["path"]}')
output: Traceback (most recent call last):
File "C:/Users/User/Desktop/IT_Files/TeleBOT/SoccerBot/test.py", line 7, in
resp = tph.create_page(
File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telegraph\api.py", line 164, in create_page
return self._telegraph.method('createPage', values={
File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telegraph\api.py", line 37, in method
raise TelegraphException(response.get('error'))
telegraph.exceptions.TelegraphException: PAGE_SAVE_FAILED