Skip to content

inosms/teleecho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

teleecho

Build Status

a small command to redirect output via a Telegram bot to your Telegram account.

Note

This is not finished yet, so use with caution.

As std::io::Read::chars() is unstable this requires nightly until this gets stable.

Installation

  1. install nightly rust compiler
  2. clone this repository
  3. cd teleecho
  4. cargo install teleecho

Setup

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.

  1. Talk to botfather to obtain a token for a new bot, which will be used to forward your messages.
  2. teleecho new <TOKEN> <NAME FOR THIS CONNECTION>
  3. Go to your Telegram app, initiate the conversation with the bot and send the displayed number.

Usage

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

About

A small command to redirect output via a Telegram bot to your Telegram account.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages