Send an action to an administered channel.
Basically a wrapper of Telebot but that only sends a actions to a channel of your choice. As an NPM package 📦
Install
$ yarn add channel-telegram-bot
Usage
const channelBot = ;const token = 'YOUR_TELEGRAM_BOT_TOKEN'; const niceEmoji = '🥋 'channelBot
API
The token
is supported also if exported as env variable as CHANNELBOT_TOKEN
:
$ export CHANNELBOT_TOKEN=YOUR_TELEGRAM_BOT_TOKEN
.sendMessage(channelName, message, [token])
channelName
Type: string
Name of your channel.
message
Type: string
Message to send.
|| process.env.CHANNELBOT_TOKEN
)
token (Type: string
Token of your bot
.
More SOON
🏗
License
MIT © LasaleFamine