1.0.0 • Published 5 years ago

telegram-message-bot v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

telegram-message-bot

Send messages to channels.

Installation

$ npm install telegram-message-bot

Usage

Load module.

const TelegramMessageBot = require('telegram-message-bot')

Initialize with your bot token.

let messageBot = new TelegramMessageBot('TELEGRAM_BOT_TOKEN')

Send message.

messageBot.send('@ChannelName', 'Message to be sent').then(result => {}).catch(error => {})

Enjoy!

1.0.0

5 years ago