# Send Telegram a receipt when a host address changes

Update a configured host from a private webhook and notify its operator only when Cloudflare creates or changes the address.

[Use template](https://dashboard.fasthook.io/workflow/new?templateKey=cloudflare-dns-address-changes-to-telegram&templateName=Send+Telegram+a+receipt+when+a+host+address+changes)

**Required accounts**

- Cloudflare DNS
- Telegram Bot

## Send Telegram a receipt when a host address changes

### 1. Trigger · New IP address received

**Webhook**. Receive a JSON submission from your existing form backend at this Workflow's private webhook URL.

### 2. Action · Apply the supplied IP address

**Cloudflare DNS**. Create an A or AAAA record or change its IP address. Repeated deliveries keep the same record.

### 3. Action · Send the change receipt

**Telegram Bot**. Telegram Bot API sendMessage. Use this method to send text messages. On success, the sent \[Message\](/bots/api/types/message.md) is returned.

## Set up your workflow

1. **Pin the hostname** Choose a zone with DNS Edit access and enter one full host name. Use a DNS-only record if public lookups should return the supplied IP address.
2. **Choose the operator chat** Connect Telegram and choose a chat where the bot can send messages. Keep the input webhook URL with the system authorized to update this host.
3. **Test a repeated update** POST a JSON object with an address field. Repeat the same IP and then send a different one of the same address family. Only the creation and the change should send receipts.

## Related integrations

- [Webhook trigger](https://www.fasthook.io/docs/triggers/webhook)
- [Cloudflare DNS integrations](https://www.fasthook.io/apps/cloudflare-dns/integrations)
- [Telegram Bot integrations](https://www.fasthook.io/apps/telegram/integrations)

## Related workflow templates

- [Route occupied customer hostnames to Trello](https://www.fasthook.io/templates/cloudflare-dns-alias-conflicts-to-trello.md): Try to reserve a requested hostname for your service.
- [Update a host’s IP address from a webhook](https://www.fasthook.io/templates/webhook-ip-updates-to-cloudflare-dns.md): Send an address to a private webhook to update one configured host.
