Crates.io | teleecho |
lib.rs | teleecho |
version | 0.1.0 |
source | src |
created_at | 2016-08-20 21:07:53.344729 |
updated_at | 2016-08-20 21:07:53.344729 |
description | A small command to redirect output via a Telegram bot to your Telegram account. |
homepage | |
repository | https://github.com/inosms/teleecho |
max_upload_size | |
id | 6043 |
size | 28,888 |
a small command to redirect output via a Telegram bot to your Telegram account.
cd teleecho
cargo install teleecho
In order to be able to forward messages you must first create a telegram bot and then create a connection between this bot and your telegram account. Each of this bot -> account sets are called a connection.
You can have multiple of those connections. This is handy if you for example log the output of your backup script and the output of another command, but dont want both to dump their logs into the same chat. Thus you can create two bots and use a unique bot for each task.
teleecho new <TOKEN> <NAME FOR THIS CONNECTION>
Once you have setup a connection If you only have one connection registered, then this will suffice
fancy-command | teleecho
If you have more than one connection (e.g. different bots or different endpoints) then you have to specify the connection name
fancy-command | teleecho backupbot