CLI tool to quickly send messages via Telegram messanger.
$ npm install -g telemify
Before using tool, you need create configuration file. Use comand:
$ telemify setup --token=XXX --chat_id=XXX
This will create a configuration file in the folder ~/.config/telemify/config.json
.
{
"token": "TOKEN_OF_THE_BOT",
"chat_id": "12345678"
}
https://www.siteguarding.com/en/how-to-get-telegram-bot-api-token
You must send your bot any message and go to the https://api.telegram.org/bot{BOT_TOKEN}/getUpdates. After you should copy the ID from the from property result[0].message.from.id
.
{
"ok": true,
"result": [
{
"message": {
"from": {
"id": 111222333,
...
},
...
}
}
]
}
It's simply! Use command:
$ telemify "Hello, World!"
MIT © Archakov Dennis