@sugarcube/plugin-telegram

0.42.1 • Public • Published

@sugarcube/plugin-telegram

Installation

npm install --save @sugarcube/plugin-telegram

I had to do the following steps to make this work:

  1. Send a message to @BotFather: /newbot This asks you for a name and a username for your bot. You get back a bot token.
  2. Run curl -v https://api.telegram.org/bot<your bot key>/getUpdates and look for the channel ID of this bot.

Edit your config file and add:

{
  "telegram": {
    "bot_key": "<your bot key>",
    "channel_id": "<your channel id"
  }
}

Plugins

telegram_send_message

Sends the content of _sc_content_fields of every unit to the Telegram chat.

Configuration:

  • telegram.bot_key
  • telegram.channel_id

License

GPL3 @ Christo

Package Sidebar

Install

npm i @sugarcube/plugin-telegram

Weekly Downloads

1

Version

0.42.1

License

GPL-3.0

Unpacked Size

49.7 kB

Total Files

8

Last publish

Collaborators

  • critocrito