{"repo":"jon-edward/py-telegram-notifier","free":true,"listed":false,"github":"https://github.com/jon-edward/py-telegram-notifier","clone":"git clone https://github.com/jon-edward/py-telegram-notifier.git","description":"A tool using the Telegram Bot API for sending messages to a Telegram chat by a context manager, function call, or CLI.","language":"Python","stars":19,"topics":["python","bot","telegram-chat"],"license":"MIT","category":"cli-tools","readme_excerpt":"py-telegram-notifier A tool using the Telegram Bot API for sending messages to a Telegram chat by a context manager, function call, or CLI. Purpose The purpose of this module is to provide a simple way to send messages to a Telegram chat using the Telegram Bot API. This is especially useful for long-running automation scripts, where the user may not be around to check the logs. This is not a wrapper for the Telegram Bot API, but rather a utility for notifying users of enter/exit events with a context manager. Installation pip install py-telegram-notifier Requirements In order for the module to function, you must supply it with a bot token and a chat id. Full instructions on creating a bot can be found here. Usage Firstly, set up the config for your Notifier. Bot token and chat id are required and must be set as environment variables ( TELEGRAM TOKEN and TELEGRAM CHAT ID , respectively). It's strongly recommended to use a git-ignored .env file for this purpose, an example file can be found here. As a context manager As a function call As a CLI Notes This module treats all messages as MarkdownV2 by default, and escapes known reserved characters. See Notifier.send message() for more information. Disclaimer The author of this software is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Telegram or any of its affiliates and is independently owned and created.","default_branch":null,"files":null,"tree":[],"storefront":"/r/jon-edward","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jon-edward/py-telegram-notifier/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}