Skip to content

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adobe Stock Community

Join our Telegram group to see how the bot works, view examples, and get updates.

Telegram Group

Explore the Adobe Stock bot, learn how it works, and discover available features directly in our Telegram community.

🔐 Telegram Webhook Security Setup

Follow the steps below to secure your Telegram bot using a Secret Token.


1️⃣ Create a Secret Token

Generate a random secret token and save it somewhere safe.

Example: MY_SECRET_TOKEN_123456789


2️⃣ Set Your Webhook

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


3️⃣ Verify Webhook Status

https://api.telegram.org/botYOUR_BOT_TOKEN/getWebhookInfo


4️⃣ Configure Your Bot

Open your webhook file and set the same secret token: $telegram_secret_token = "YOUR_SECRET_TOKEN";


✅ Example

Webhook URL: https://example.com/webhook.php

Secret Token: MY_SECRET_TOKEN_123456789

Set Webhook: https://api.telegram.org/bot123456:ABCDEF/setWebhook?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.

About

We will provide you the codes of a Telegram bot in PHP language with complete explanations, we hope you can use these codes to build your bots.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages