Index Page

Installation

$ pip install telegraph-api

Example Usage

# Declaring asynchronous function for using await
async def main():
    # Creating new Telegraph object
    telegraph = Telegraph()
    # Creating new account
    await telegraph.create_account("My Favourite Blog", author_name="Ivan")
    # Creating new page
    new_page = await telegraph.create_page(
        "My first Telegraph Post",
        content_html="<p>Hello world!</p>" # Html content can be presented
    )
    # Printing page url into console
    print(new_page.url)


# Running asynchronous function
asyncio.run(main())

Here is a pdf file, that contains this documentation pdf