Telegraph
Telegraph API wrapper | Telegra.ph
- [Documentation](https://python-telegraph.readthedocs.io/en/latest/) The project is written primarily in Python, distributed under the MIT License license, first published in 2016. Key topics include: api-wrapper, python, telegraph, telegraph-api.
Latest release: v2.2.0— Telegraph 2.2.0
October 26, 2022View Changelog →
Telegraph
Python Telegraph API wrapper
bash$ python3 -m pip install telegraph # with asyncio support $ python3 -m pip install 'telegraph[aio]'
Example
pythonfrom telegraph import Telegraph telegraph = Telegraph() telegraph.create_account(short_name='1337') response = telegraph.create_page( 'Hey', html_content='<p>Hello, world!</p>' ) print(response['url'])
Async Example
pythonimport asyncio from telegraph.aio import Telegraph async def main(): telegraph = Telegraph() print(await telegraph.create_account(short_name='1337')) response = await telegraph.create_page( 'Hey', html_content='<p>Hello, world!</p>', ) print(response['url']) asyncio.run(main())
Contributors
Showing top 6 contributors by commit count.
This article is auto-generated from python273/telegraph via the GitHub API.Last fetched: 6/16/2026
