mirror of
https://gitea.0xace.cc/rust/telegram-notifier.git
synced 2024-11-24 21:36:40 +00:00
20 lines
516 B
Markdown
20 lines
516 B
Markdown
# Telegram notifier
|
|
## Options
|
|
- token - required, Telegram token
|
|
- chatid - required, Telegram chat id
|
|
- config - file, default config file name ".telegram-notifier.yaml"
|
|
|
|
## Command line example:
|
|
|
|
telegram-notifier --token XXXX --chatid YYYY --msg "My message"
|
|
|
|
## Config .telegram-notifier.yaml example:
|
|
|
|
token: XXXX
|
|
chatid: YYYY
|
|
|
|
## Example for rtorrent.rc:
|
|
|
|
method.set_key = event.download.finished,notify_me,"execute=telegram-notifier,--config,/path/to/.telegram-notifier.yaml,--msg,$d.name="
|
|
|