Skip to content

A simple command-line tool to send a Telegram message

License

Notifications You must be signed in to change notification settings

peterzernia/text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text

A simple command-line interface to send a Telegram message

Usage

text me 'hello world'
docker build . && text me 'build complete'

Text can be used in combination with wait-on to wait for internet to come back:

wait-on https://news.ycombinator.com/ && text me 'internet is back'

Setup

  • Create a new telegram bot
  • Start a chat with your new bot
  • Get the chat id
  • Set TEXT_BOT_TOKEN=<your_bot_token> and TEXT_ME=<your_chat_id> in your ~/.bashrc, ~/.bash_profile, ~/.profile, etc
  • run make build and make copy to build and move the binary into /usr/local/bin

Note: you can text other users/groups with the chat id specific to that user/group. Simply set the env variable TEXT_USER=<other_chat_id> and run text user hey where user is the username/group name

About

A simple command-line tool to send a Telegram message

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published