1.0.4 • Published 3 years ago

send-telegram-msg v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

npm version

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",
});
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago