puzh
puzh is a simple wrapper package for the puzh.it api. It supports python 3.x.
You can easily push messages to the telegram @puzhbot.
Install
$ pip install puzh
Usage
# Simple usage
import puzh
puzh.it('*Hi* ✌', token='secret_token')
# Advanced usage
from puzh import Puzh
puzh = Puzh('secret_token')
puzh.it('*Hi* ✌')
API
it(*objects, token=None, silent=False, sep=' ')
puzh.Push a message to the telegram @puzhbot. Using silent=True
will send
the message silently. Users will receive a notification without sound.
Messages can be formatted using Markdown.
Multiple arguments will be separated by sep
, a space by default.
The method is executed asynchronously, if it fails, it will swallow any exception silently.