Skip to main content

Telegraph API wrapper

Project description


PyPI Python Versions License

Python Telegraph API wrapper

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


from telegraph import Telegraph

telegraph = Telegraph()

response = telegraph.create_page(
    html_content='<p>Hello, world!</p>'

Async Example

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(
        html_content='<p>Hello, world!</p>',

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

telegraph-2.2.0.tar.gz (8.0 kB view hashes)

Uploaded source

Built Distribution

telegraph-2.2.0-py3-none-any.whl (10.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page