telegraph icon indicating copy to clipboard operation
telegraph copied to clipboard

Telegraph API wrapper | Telegra.ph

Results 12 telegraph issues
Sort by recently updated
recently updated
newest added

It's not an issue, I just want to share this code ```python from telegraph import Telegraph, upload telegraph = Telegraph() telegraph.create_account(short_name='LetsTry') def post(title, content): response = telegraph.create_page(title, html_content = content)...

I have a telegraph page generated through your library. It works great. Whose a way to make changes to an existing page don't recreating content?

hello, telegra.ph is blocked in our country, and we use proxy. So, please add support socks5h, like in https://github.com/python-telegram-bot/python-telegram-bot `REQUEST_KWARGS = {'proxy_url': 'socks5h://127.0.0.1:9050',} updater = Updater(token=TOKEN, request_kwargs=REQUEST_KWARGS, use_context=True)`

can't post iframe's now..... FeelsBadMan

enhancement
good first issue

I have a Telegram bot that creates Telegraph pages with some user stats. Sometimes it raises `requests.exceptions.JSONDecodeError` at `Telegraph.create_page`: ```python File "/root/botty/main.py", line 474, in user_stats telegraph_response = telegraph.create_page(stats_page_title, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

File "/usr/local/lib/python3.8/site-packages/telegraph/upload.py", line 13, in upload_file r = TelegraphApi().upload_file(f) File "/usr/local/lib/python3.8/site-packages/telegraph/api.py", line 56, in upload_file response = self.session.post( File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 975, in json RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value:...

```py response = telegraph.create_page(search, author_name=searchresult[0]['artists'][0]['name'], author_url=f"https://music.youtube.com/channel/{searchresult[0]['artists'][0]['id']}", html_content=l['lyrics'].replace("\n", "")) ``` I met this error when I am trying to create a page on telegra.ph using this module ```py Traceback (most recent...

Get error when simply try to edit page. ``` File "C:\Users\Soulbadguy\PycharmProjects\match_parsers\objects\telegraph.py", line 80, in _act_telegraph page = await func(**func_args) File "C:\Users\Soulbadguy\PycharmProjects\match_parsers\.venv\lib\site-packages\telegraph\aio.py", line 209, in edit_page return (await self._telegraph.method('editPage', path=path, values={...

When creating telegraph page, by default requests.post is sending data with `'Content-type': 'application/x-www-form-urlencoded'` It's huge, because json payload is percent-encoded, for example this dict (43 bytes): ` {"key": "value with...