ceit93bot-cli
v0.0.3
Published
Manage your channel with your bot :)
Downloads
4
Readme
ceit93bot-cli
This library will help you manage your telegram channel without having to install telegram on your computer.
Prerequisites
- A telegram bot with API token from the @botfather.
- Above telegram bot should be adminstrator of the channel that you want to control.
Installation
Installation is pretty simple:
With yarn:
yarn global add ceit93bot-cli
With npm:
npm install -g ceit93bot-cli
Now you should only configure it:
tcli config --bot-username @YOUR_BOT_USERNAME
tcli config --bot-hash YOUR_BOT_API_KEY
tcli config --channel @YOUR_CHANNEL_ID
Usage
Currently only sending messages and documents are supported
Sending message
tcli send --message "Hello World from CLI :)"
Sending documents
tcli send --file document.pdf