A simple command-line interface to send a Telegram message
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'
- Create a new telegram bot
- Start a chat with your new bot
- Get the chat id
- Set
TEXT_BOT_TOKEN=<your_bot_token>
andTEXT_ME=<your_chat_id>
in your ~/.bashrc, ~/.bash_profile, ~/.profile, etc - run
make build
andmake 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