puzh

Easily send messages to Telegram


Keywords
puzh, push, telegram, bot, notification
License
MIT
Install
pip install puzh==1.1.2

Documentation

puzh

Build Status PyPI version

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

puzh.it(*objects, token=None, silent=False, sep=' ')

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.