A simple module to send messages from a Telegram bot to a pre-configured chat. Helps getting notifications from long running or background processes. Example usage:
from telega_notify import send_message
# do some work...
send_message('The work is done.')
Supports socks5 proxies.
$ pip install telega-notify
Reads config options from ~/.config/telega-notify.toml
and /etc/telega-notify.toml
. Example config:
token = '123456789:AAG................................'
chat_id = '-123456789'
proxy = 'socks5://proxy:[email protected]:8010'
- Support for http proxies.
- Specify alternative chat_id from CLI and
send_message
arguments. - Attach files.