@nandansravesh/sendgrid-cli
v0.0.5
Published
CLI tool to send Telegram messages from the terminal.
Readme
@nandansravesh/sendgrid-cli
CLI tool to send Telegram messages from the terminal.
Installation
npm install -g @nandansravesh/sendgrid-cliCommands
sendgrid init
Save your Telegram bot token (stored at ~/.config/sendGrid/config.json).
sendgrid init --telegram-bot-token YOUR_BOT_TOKENsendgrid telegram <chatId> <message>
Send a message to a Telegram chat.
sendgrid telegram 123456789 "Hello from the CLI!"Output:
{ "ok": true, "chatId": "123456789", "messageId": "42" }How to get a Bot Token
- Open Telegram and search for @BotFather
- Send
/newbotand follow the prompts - Copy the HTTP API token
Keywords
sendgrid cli telegram bot messaging command-line terminal
