### Install Telegraph Python Package Source: https://github.com/python273/telegraph/blob/master/README.md Install the telegraph package using pip. For asyncio support, install with the 'aio' extra. ```bash python3 -m pip install telegraph # with asyncio support python3 -m pip install 'telegraph[aio]' ``` -------------------------------- ### Create Telegraph Account and Page (Async) Source: https://github.com/python273/telegraph/blob/master/README.md Demonstrates asynchronous creation of a Telegraph account and a new page using the aio module. Requires asyncio to be imported and run. ```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='

Hello, world!

', ) print(response['url']) asyncio.run(main()) ``` -------------------------------- ### Create Telegraph Account and Page (Sync) Source: https://github.com/python273/telegraph/blob/master/README.md Demonstrates synchronous creation of a Telegraph account and a new page. Requires the Telegraph class to be imported. ```python from telegraph import Telegraph telegraph = Telegraph() telegraph.create_account(short_name='1337') response = telegraph.create_page( 'Hey', html_content='

Hello, world!

' ) print(response['url']) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.