New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

channel-telegram-bot

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

channel-telegram-bot

Bot for Telegram to simply send actions to a channel (Telebot wrapper)

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

channel-telegram-bot Build Status

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 :package:

Install

$ yarn add channel-telegram-bot

Usage

const channelBot = require('channel-telegram-bot');
const token = 'YOUR_TELEGRAM_BOT_TOKEN';

const niceEmoji = '🥋 '
channelBot.sendMessage('@your_awesome_channel_name', `Prepare yourself ${niceEmoji}`, token)
	.then(res => console.log(res))
	.catch(err => console.error(err))

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.

token (|| process.env.CHANNELBOT_TOKEN)

Type: string

Token of your bot.

More SOON

:building_construction:

License

MIT © LasaleFamine

FAQs

Package last updated on 14 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc