Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

NoTel: Easy Telegram Notification sender for Python and CLI

NoTel is a simple Telegram notification sender written in Python 3. If you have your own bot token, you can just start using NoTel.

Installing NoTel

NoTel is hosted on PyPI. To install, run the following command in your Python environment:

$ pip install notel
$ notel --default_token [YOUR_TOKEN] --default_chat_id [YOUR_CHAT_ID]

If you don't know how to get your own bot token and your chat ID, please follow below links.

Also, please note that you should start a talk with your bot before sending messages through NoTel.

Make your own bot and get token

https://tutorials.botsfloor.com/creating-a-bot-using-the-telegram-bot-api-5d3caed3266d

Get your Telegram chat ID

https://bigone.zendesk.com/hc/en-us/articles/360008014894-How-to-get-the-Telegram-user-ID-

Using NoTel

Using NoTel in Command Line Interface

After you set default token and default chat ID, you can simply send Telegram notification with the command below.

$ notel -m Hello

Available arguments

  • -h, --help show this help message and exit
  • --set_default_id SET_DEFAULT_ID, -di SET_DEFAULT_ID set a default Telegram chat id for notel
  • --set_default_token SET_DEFAULT_TOKEN, -dt SET_DEFAULT_TOKEN set a default Telegram token for notel
  • --chat_id CHAT_ID, -i CHAT_ID set a Telegram chat id to send a message
  • --token TOKEN, -t TOKEN set a Telegram bot token to send a message
  • --message MESSAGE, -m MESSAGE a message to send to chat id
  • --print_console PRINT_CONSOLE, -p PRINT_CONSOLE set notel to print to stdout

Using NoTel inside Python

NoTel can be imported as a module to be used directly in Python also.

from notel import tprint

tprint("Hello, world!")

Available arguments

  • tprint(msg, token=None, chat_id=None, print_console=True)
    • msg: The message you want to send.
    • token: token of Telegram bot. If token is None, then the default_token will work.
    • chat_id: Chat ID for the user who want to receive the message. If chat_id is None, then the default_chat_id will work.
    • print_console: If print_console is False, tprint will not print msg in your console.

Metadata

Release files for NoTel 0.1a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for NoTel 0.1a1
File Interpreter ABI Platform Actions
NoTel-0.1a1-py3-none-any.whl Python 3 none any Details for NoTel-0.1a1-py3-none-any.whl

Release files / NoTel-0.1a1-py3-none-any.whl

Download URL NoTel-0.1a1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6794baa391842537171d92a25afb248f2bc4fb7c3f5dfa17da870f64f3aadb9f
BLAKE2b-256 checksum
How to use checksums
fba26d188207bcddea1b3ffa63b5a2f3a3d8d676043198f39728d8186c2dcae9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Security for NoTel 0.1a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page