Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

A genie-router client plugin that enables a bot with the Telegram Bot API for input/output.

Notifications You must be signed in to change notification settings

genie-ai/genie-router-plugin-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a plugin for the https://github.com/genie-ai/genie-router project. The Telegram bot API is used as a client for input.

Setup

At the plugin location ($HOME/.genie-router), type:

npm install --save @genie-ai/genie-router-plugin-telegram-bot

Then, follow the instructions on the Telegram bot API explanation page to acquire a token for your bot. Place that token in your client configuration, for example:

{
  "plugins": {
    "telegram-bot": {
      "token": "<token goes here>",
      "password": "genie"
    }
  }
}

The password configuration attribute is optional, and can be used to require a password before someone can send commands via Telegram. A hash of the password is stored in the persistent storage, so that the user can be automatically granted access in a next session. A user has to type the password anew when the password changes in the configuration.

To not require a password, simply remove the attribute or set it to null.

About

A genie-router client plugin that enables a bot with the Telegram Bot API for input/output.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published