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

import puzh

puzh.it('*Hi* ✌', token='secret_token')

API

puzh.it(*objects, token='secret', 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.0.4.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

puzh-1.0.4-py3-none-any.whl (2.2 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