mercuree / html-telegraph-poster

Python html to telegra.ph poster (telegram article service)
MIT License
100 stars 31 forks source link

How to edit a previously created page? #5

Closed regenara closed 4 years ago

regenara commented 5 years ago

I have a page that I created earlier. How can I change it? Something like code: link_page = 'https://telegra.ph/mypagetoedit' t.edit(link_page, text=link_page.text + 'my new text')

mercuree commented 5 years ago

Ok, i will fix it soon. Workaround:

t =  TelegraphPoster(access_token='<your access token>')
t.author_url = ''
t.path = 'https://telegra.ph/mypagetoedit'
t.edit_page('title', 'author', '<p>html here</p>')
mercuree commented 4 years ago

Fixed 8d4a429ffd343099286ba115a8ace765d3cda063 edit_page now accepts path parameter

t.edit_page('title', 'author', '<p>html here</p>', path='/page-path-05-06')