Coder Social home page Coder Social logo

amanoteam / comments Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 8 KB

A simple Python wrapper for the https://comments.bot API.

License: MIT License

Python 100.00%
telegram comments python python3 urllib3 api-wrapper api wrapper python-library python-wrapper

comments's Introduction

comments

PyPi Python 3

A simple Python wrapper for the https://comments.bot API.

Basic usage

import comments

client = comments.Client("YOUR_API_KEY_HERE", owner_id=YOUR_USER_ID_HERE)

post = client.createPost(type="text", text="Hello world")

print(post.post_id)
print(post.link)
You will get something like this:
xxxxxxxx
https://comments.bot/thread/xxxxxxxx

createPost() arguments:

owner_id:

required if not passed on Client.

type:

must be text or photo. text is used by default if not specified.

text:

required if type equals to text. It must be a string betwen 0-4056 characters.

photo_url:

required if type equals to photo. It must be a string containing a link to the image.

caption:

Caption for the image. Only valid for photo type.

parse_mode:

Parse mode for the text/caption. It must be markdown or html.

administrators:

A string with user_ids (numbers) separated by comma. Example: 123456789,987654321,012345678.

disable_notifications:

Pass True if you don't want to receive notifications about new comments for your post.

comments's People

Contributors

alissonlauffer avatar dependabot-preview[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

comments's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.