telegraphapi

Python TelegraphAPI wrapper


Keywords
telegraph, api, rest, http, telegraphapi, telegram, python, telegraph-api
License
MIT
Install
pip install telegraphapi==0.5

Documentation

Telegraph

Travis PyPI PyPI PyPI

This is simple Telegraph API Python wrapper.

Getting Started

Requirements

TelegraphAPI require just one additional library - Requests - the most powerful Python HTTP library

pip install requests

Installing

Now install TelegraphAPI

pip install telegraphapi

Demo

# _*_ coding: utf-8 _*_

from telegraphapi import Telegraph

telegraph = Telegraph()

telegraph.createAccount("PythonTelegraphAPI")
page = telegraph.createPage("Hello world!", html_content="<b>Welcome, TelegraphAPI!</b>")

print('http://telegra.ph/{}'.format(page['path']))

Documentation

All docs for Telegraph API located here. Here is just list of all methods:

  • createAccount
  • getAccessToken
  • editAccountInfo
  • getAccountInfo
  • revokeAccessToken
  • createPage
  • editPage
  • getPage
  • getPageList
  • getViews

Authors

  • Andrew Developer - All work - GitHub

License

This project is licensed under the MIT License - see the LICENSE file for details