1.0.5 • Published 8 years ago

telegram-bot-cli v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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>