Creates a connection to @notigram_apibot in Telegram
Project description
Notigram-CLI 🛎
Notigram is a small project, aimed as a productivity-aid tool.
The functionality provided is basically sending notifications from a script or command line, to a Telegram client, so you can be notified about any kind of event through it.
- The tool is composed by 3 parts:
A CLI interface, which can be used from command line, python module, or http request.
A Telegram Bot, which will provide a personal token for the user and will deliver the notifications.
And finally the API, which manages the message requests and the bot.
The API code can be found here on my other repo, in case you want to check out how it works ^^.
The Telegram bot can be found as @notigram_apibot or at https://t.me/notigram_apibot.
Installing 👨💻
pip install notigram
Usage 👓
>>> from notigram import ping
>>> ping('<TOKEN>',"You've got a message from python!")
{'response':'result'}
or 🤷♂️
[user@linux ~]$ python -m notigram <TOKEN> Hello from command line! :D
{'response':'result'}
If you aren’t using a python program or a command line, you can always send an http post request to the server (https://notigram-api.fly.dev/sendMessage) as well with the following format:
{
"token": "TOKEN",
"message": "The Postman says Hello!"
}
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
File details
Details for the file notigram-2.2.2.tar.gz
.
File metadata
- Download URL: notigram-2.2.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b2760199faae910325c66fdb0f95c288bc9567a7a564cf4cbcb57e45ea6b834 |
|
MD5 | 88ee35b839bf6babbb0e1ba3dad1d1dc |
|
BLAKE2b-256 | 61c6d5eb952cc4f67842ae478b3dc512ef75ffe671ffb1338b183bfa76ee2c45 |
File details
Details for the file notigram-2.2.2-py3-none-any.whl
.
File metadata
- Download URL: notigram-2.2.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b99044a719f67b6bc8f69497d324ac88c28055f17ef17ac10c1d4d9671cdb54b |
|
MD5 | 8368055f5d5f588f676a88bb8ba0dcfc |
|
BLAKE2b-256 | 76cbd3f4d8d745908c1ef4bd673a19d7444e1a0602e0b1f7b4d6817196df34a2 |