telegram-bot-cli

v1.0.5
[Deprecated] Send messages from CLI
telegram cli

telegram-bot-cli

Build Status

Unofficial telegram bot cli

:warning: Deprecation notice: Use curl and aliases instead

alias send-tg="curl \"https://api.telegram.org/bot$TOKEN/sendMessage?chat_id=$CHAT_ID&text=$TEXT\""

Related

Install

$ npm install -g telegram-bot-cli

Usage

# list of joined chats and users
$ telegram-bot --list

# send files by mask
$ telegram-bot "<file_mask>" # show dialog with chat selection
$ telegram-bot "<file_mask>" --chat_id=<chat_id>
$ telegram-bot "<file_mask>" --chat_id=<chat_id> --token=<token>

# send message
$ telegram-bot --message="message from bot"
$ telegram-bot --message="message from bot" --chat_id=<chat_id>
$ telegram-bot --message="message from bot" --chat_id=<chat_id> --token=<token>
npm i telegram-bot-cli

Metadata

  • MIT
  • Whatever
  • ewnd9
  • released 6/22/2016

Downloads

Maintainers