A simple Python wrapper for the https://comments.bot API.
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)
xxxxxxxx
https://comments.bot/thread/xxxxxxxx
required if not passed on Client.
must be text
or photo
. text
is used by default if not specified.
required if type
equals to text
. It must be a string betwen 0-4056 characters.
required if type
equals to photo
. It must be a string containing a link to the image.
Caption for the image. Only valid for photo
type.
Parse mode for the text/caption. It must be markdown
or html
.
A string with user_ids (numbers) separated by comma. Example: 123456789,987654321,012345678
.
Pass True if you don't want to receive notifications about new comments for your post.