Easily send messages to Telegram
Project description
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file puzh-1.1.2.tar.gz.
File metadata
- Download URL: puzh-1.1.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13d735f657d081c548954775c926df9b9255badd88d61ae411edfb8205432741
|
|
| MD5 |
805ba316ecb5b63e9287bd9dedc97d8b
|
|
| BLAKE2b-256 |
668676b185679cede0799fcf4e176c18c7ac3785526f305c0e0c0ac26f50b00e
|
File details
Details for the file puzh-1.1.2-py3-none-any.whl.
File metadata
- Download URL: puzh-1.1.2-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
640e01db6cb9231b13317280918c9ca227da50b6b50ff391458433caeeb8d72a
|
|
| MD5 |
cad3782384078585c5a3ac4846272dcb
|
|
| BLAKE2b-256 |
fdfb5bc24244a57bb4a81150daf4d38cfbfebcdae3319605d70ccbf0e5659fe5
|