hubot-telegram-user-whitelist-middleware
v1.0.0
Published
Adds ability to whitelist users in telegram.
Downloads
2
Maintainers
Readme
Hubot Telegram User Whitelist
If you use the hubot telegram adapter but you do not want make your bot available to the public.
Use this.
How to use
Install
npm install --save hubot-telegram-user-whitelist-middleware
Register
In external-scripts.json
add
"hubot-telegram-user-whitelist-middleware"
This is meant for telegram, but will work with any adapter that exposes the current user via context.response.message.user.name
.
Environment Variables
To set the whitelist use the following environment variable:
Environment Variable | Description | Example
--- | --- | ---
HUBOT_WHITELIST
| A comma separated list (no spaces). | john,mike