Notifications: Telegram and Webhook#
PrivateFlare can notify you about domain and node status changes in two ways:
via Telegram — a simple notification in a chat;
via Webhook — a flexible automation tool that lets you trigger your own logic on events.
Webhook#
A webhook is an HTTP GET request that PrivateFlare sends to your URL when a domain or node status changes.
On your end, you can implement any response: switching nodes, restarting a service, updating a DNS record, and so on.
Examples:#
Webhook for domains:
http://yourwebhook.url?status={status}&domain={domain}
{status}— current status (online,offline){domain}— domain name
Webhook for nodes:
http://yourwebhook.url?status={status}&nodename={nodename}&nodeip={nodeip}
{status}— current status (online,offline){nodename}— node name{nodeip}— node IP address
Telegram#
To receive notifications in Telegram, follow these steps:
Launch our Telegram bot.
It will send you a chat ID.
If you want to receive notifications in a group chat, add the bot to the group and send the
/startcommand.In the user settings in the service admin panel:
enable Telegram notifications,
enter the chat ID (you can specify multiple, separated by commas).
Save the settings.
All set — notifications will arrive automatically.
You’re awesome!