send-telegram-msg
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i send-telegram-msg

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

4.59 kB

Total Files

5

Last publish

Collaborators

  • nebtapa