send-telegram-msg
v1.0.4
Published
Send telegram message on a specific channel
Downloads
9
Readme
Send Telegram Message
Sends a telegram message to a specific channel using bot
Installation
npm install send-telegram-msg
Usage
requires telegram user token and channelId
Token can be created here https://core.telegram.org/bots#6-botfather
import { bot } from 'send-telegram-msg';
const token = "<Telegram Token>"
const botSample = bot(token)
botSample.sendMessage({
chatId: "<Chat Id to send>",
message: "hello",
});