Secure Telegram Bot Token & Chat ID with Cloudflare Workers | Telegram Bot Development & API Course
Автор: gilgeekify programming
Загружено: 2025-08-17
Просмотров: 260
Описание:
We take a deep dive into securing our Telegram Bot Token & Chat ID. Instead of exposing sensitive data in the frontend (where anyone can see it in DevTools), we’ll build a Cloudflare Worker from scratch using Wrangler CLI.
This Worker will act as our secure, serverless backend — safely storing environment variables and preparing the foundation for sending messages via the Telegram API in the next episode.
🎞️ TIMESTAMPS 🎬
0:00 Intro
0:07 Project Overview
0:28 Why You Shouldn’t Store Sensitive Data on the Frontend
0:47 Exposing Sensitive Data in the DevTools Network Tab
1:45 A Secure Way to Protect Bot Token & Chat ID
2:32 Logging into a Cloudflare Account
3:33 Creating a Cloudflare Worker
3:52 Configuring the `wrangler.toml` File
4:06 Defining the `name` Key in wrangler.toml
4:13 Defining the `main` Key in wrangler.toml
4:18 Defining the `compatibility_date` Key in wrangler.toml
4:30 Writing Code for a Cloudflare Worker
5:32 Deploying a Cloudflare Worker
6:03 Installing & Using the Wrangler CLI
7:15 Deploying a Worker with Wrangler
8:00 Updating a Worker
8:24 Setting Environment Variables in Cloudflare
10:32 Conclusion
10:45 Outro
🔷 What You’ll Learn in Ep.4:
✅ Why sensitive data must never be stored on the frontend
✅ How secrets get exposed in the DevTools Network tab
✅ Introduction to Cloudflare Workers as a free serverless backend
✅ Setting up and configuring a Worker project from scratch
✅ Writing and deploying your first Worker with Wrangler CLI
✅ Using Cloudflare environment variables to securely store Bot Token & Chat ID
🟠 Cloudflare Dashboard:
🔗 https://dash.cloudflare.com/
🖥️ Source Code (All Versions Included):
🔗 https://github.com/saeedkohansal/send...
📜 Wrangler Commands + Source Code:
🔗 https://gist.github.com/saeedkohansal...
🧑💻 Next Episode (Ep.5):
🔜 Implementing Telegram API inside our Worker to securely send messages
📢 Support the Channel:
👍 Like | 💬 Comment | 🔔 Subscribe & Hit the Bell
#TelegramBot #CloudflareWorkers #Serverless #JavaScript #WebDevelopment #APITutorial #TelegramAPI #TelegramBotAPI #Cloudflare #Programming #Coding #gilgeekify
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: