https://github.com/amanoteam/comments
A simple Python wrapper for the https://comments.bot API.
https://github.com/amanoteam/comments
api api-wrapper comments python python-library python-wrapper python3 telegram urllib3 wrapper
Last synced: about 1 month ago
JSON representation
A simple Python wrapper for the https://comments.bot API.
- Host: GitHub
- URL: https://github.com/amanoteam/comments
- Owner: AmanoTeam
- License: mit
- Created: 2019-06-05T12:55:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-25T15:14:37.000Z (over 4 years ago)
- Last Synced: 2025-04-25T07:52:57.434Z (2 months ago)
- Topics: api, api-wrapper, comments, python, python-library, python-wrapper, python3, telegram, urllib3, wrapper
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# comments

A simple Python wrapper for the https://comments.bot API.
## Basic usage
```python
import commentsclient = 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.