telegram-tee

command module
v0.0.0-...-fb3f3ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

README

Telegram Tee

Simple cli tool to send stdin to any Telegram chat, through a bot. It’s a bit like tee, but for telegram.

Getting started

Set up

First, install the tool with

go install cj.rs/telegram-tee@latest

Then, you need to control a bot. Set the environment variable TLGCLI_TOKEN to the token of the bot that will write stdin to a chat for you. You may want to create a new bot or use an existing one.

Use

Then, you need to get the chat ID of the conversation to which you want to send stdin. Just run

telegram-tee

and write with Telegram to your bot. It will reply with the current chatID.

You can then do

echo Hi | telegram-tee <chatID>

You can even send to several chatID at the same time.

TODO

  • Make stdout usable like tee

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL