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.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: notigram-2.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 0439d31f19d9d92177212919498caadc760a1e1bbe2c6e9512a43a67c3efb5a6
MD5 0b301778d9b693cf9b875fe1d0c86a00
BLAKE2b-256 980c8a57b7f14d6a15784a7ecfc48bfdbba8cce48b055b811cedae22b98a6cf6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: notigram-2.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9af949d5f87cbcb73af0a3c2c00528576e411106aa93353659ca9a8554484385
MD5 df0f03df3e319d1b4866485ee29bc2fd
BLAKE2b-256 62ad5913c88301077c88b45b23696cf1e1b5d1c408f77da4177e7ac0483a391d

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