Skip to content

juanpabloaj/fromcommandlinebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FromCommandLineBot

A telegram bot to send messages to Telegram from the command line.

Usage

Start a conversation with fromcommandlinebot

https://telegram.me/fromcommandlinebot

and generate a new chat token.

Imgur

Use this token to send messages from the command line to a telegram chat.

curl -d "{\"token\":\"012xyz\",\"msg\":\"hello from curl $(date)\"}" \
-H "Content-Type: application/json" https://fromcommandlinebot.now.sh

Get the message in the telegram chat.

Imgur

To Run and Deploy your own version of the bot

This information is for developers, if you only need use the bot, with read the previous section is sufficient.

If you need run a own instance of the bot you need a nodejs/expressjs server and a mongodb database, with some environment variables defined

TELEGRAM_TOKEN
MONGODB_DB_URL

About

Telegram bot to send messages from command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published