Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

This package has been deprecated

Author message:

Use curl and aliases instead

telegram-bot-cli

1.0.5 • Public • Published

telegram-bot-cli

Build Status

Unofficial telegram bot cli

⚠️ 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>

Keywords

Install

npm i telegram-bot-cli

DownloadsWeekly Downloads

0

Version

1.0.5

License

MIT

Last publish

Collaborators

  • avatar