Skip to main content

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

notigram-2.2.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

notigram-2.2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file notigram-2.2.0.tar.gz.

File metadata

  • Download URL: notigram-2.2.0.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

Hashes for notigram-2.2.0.tar.gz
Algorithm Hash digest
SHA256 d510c0e53dc582ccce2ef8f666362f91b3cbb72a2b29d2382ae9a0c679a29a10
MD5 56a93b554d3026cef771e63341c632df
BLAKE2b-256 7040ce5f0c5042216334050bcdb4beea348fd5775828997560d986a22d01a8c8

See more details on using hashes here.

File details

Details for the file notigram-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: notigram-2.2.0-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

Hashes for notigram-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9411e6e01b7b2299f6b34caef7608d07d37d7888329ed011bce140622ca2e340
MD5 a15d8cea7566edfc12b56c91e989d551
BLAKE2b-256 9cb56c4eda0de73b0590c9edcd4c3dae0f477f565ca3de01703fd840101caf9e

See more details on using hashes here.

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