GitPedia

Telegraph

Telegraph API wrapper | Telegra.ph

From python273·Updated May 26, 2026·View on GitHub·

- [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.0Telegraph 2.2.0
October 26, 2022View Changelog →

Telegraph

PyPI
Python Versions
License

Python Telegraph API wrapper

bash
$ python3 -m pip install telegraph # with asyncio support $ python3 -m pip install 'telegraph[aio]'

Example

python
from 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

python
import 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.

View all contributors on GitHub →

This article is auto-generated from python273/telegraph via the GitHub API.Last fetched: 6/16/2026