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


Download files

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

Source Distribution

puzh-1.1.2.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

puzh-1.1.2-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page