Security - The Best Way

Depends on how you use Telegram. There are 2 ways and the simples creates a connection from Node-RED to Telegram which is significantly less risky than creating an inbound connection.

Please have a look at this FAQ post for advice on how to safely access node-red over the internet.