Skip to content

💬 Simple cli tool to create telegram bot behaving like tee

License

Notifications You must be signed in to change notification settings

lukas016/telegram-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Tee

Forked from https://github.com/cljoly/telegram-tee
Simple cli tool to send html formatted messages from stdin to any Telegram chat, through a bot.

Getting started

Set up

First, install the tool with

go install github.com/lukas016/telegram-client

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

Simple input

echo "<strong>Hi</strong>" | telegram-client <chatID> ...

Multiline input

printf "<string>Hi</strong>\nHow are you?" | telegram-client <chatID> ...

or

telegram-client <chatID> ... << EOF
<string>Hi</strong>
How are you?
EOF

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

About

💬 Simple cli tool to create telegram bot behaving like tee

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%