Join our Telegram group to see how the bot works, view examples, and get updates.
Explore the Adobe Stock bot, learn how it works, and discover available features directly in our Telegram community.
Follow the steps below to secure your Telegram bot using a Secret Token.
Generate a random secret token and save it somewhere safe.
Example: MY_SECRET_TOKEN_123456789
Replace:
- YOUR_BOT_TOKEN
- YOUR_DOMAIN
- YOUR_SECRET_TOKEN
with your own values. https://api.telegram.org/botYOUR_BOT_TOKEN/setWebhook?url=https://YOUR_DOMAIN/webhook.php&secret_token=YOUR_SECRET_TOKEN
https://api.telegram.org/botYOUR_BOT_TOKEN/getWebhookInfo
Open your webhook file and set the same secret token: $telegram_secret_token = "YOUR_SECRET_TOKEN";
Webhook URL: https://example.com/webhook.php
Secret Token: MY_SECRET_TOKEN_123456789
Important
The Secret Token is NOT generated by BotFather.
You must create it yourself and use the same value both in your webhook URL configuration and in your bot source code.
Tip
Use a long random string (32–64 characters) for maximum security.