- Generate a new high-entropy secret.
- Deploy handlers that accept old or new for one release.
- Call setWebhook with secret_token set to the new value.
- Confirm getWebhookInfo and signature metrics.
- Remove acceptance of the old secret.
Tutorial
Rotate a Telegram webhook secret_token
Dual-support briefly, setWebhook, then drop the old secret.