Skip to main content

Easily send messages to Telegram

Project description

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.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.

Project details


Release history Release notifications

This version
History Node

1.1.0

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
puzh-1.1.0-py3-none-any.whl (2.6 kB) Copy SHA256 hash SHA256 Wheel py3 Apr 22, 2018
puzh-1.1.0.tar.gz (2.3 kB) Copy SHA256 hash SHA256 Source None Apr 22, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page