https://github.com/guidone/node-red-contrib-chatbot/raw/master/docs/images/example-autorized-users.png

In the node

Telegram Receiver

it’s possible to specify a comma seprated list of authorized users (either the userId or the username), for every inbound message the

authorized

boolean variable will be updated in the chat context.

The node Authorized? sends the message through the first output is the user is authorized, otherwise the second output.