
Register a Firebase account, create a project named TelegramBot, set its ID and location, and upgrade from Spark to Blaze to enable third-party API requests.
Install and use the Firebase CLI to create a project and deploy to Firebase, including installing with npm, logging in, and confirming access success.
Create the telegramBot folder and initialize firebase cloud functions with javascript, enable eslint, install dependencies with npm, and link the project using a staging alias.
Learn to run a Firebase local function for a Telegram bot by inspecting the project structure, opening index.js, requiring Firebase functions, and testing the hello world function locally.
Deploy a hello world function to Firebase with the Firebase CLI, verify deployment via the link, and preview building a telegram bot with the telegraph library.
Obtain a unique Telegram API key from BotFather after creating the bot, then securely store the token and keep it private for use in the next tutorial.
Build a simple Telegram bot with the Telegraf framework, install via npm, run it as a Firebase cloud function, and test welcome, help, and sticker responses locally.
Learn how to set and manage environment variables for a Telegram bot using Firebase CLI, switch between local env.json and Firebase functions.config(), and deploy the project to Firebase.
This is a practical course based on the Pareto principle. 80% - practice, 20% - theory. The course will help students understand the basics of Telegram Bot development using NodeJs, Telegraf Framework and Firebase Cloud Functions.
If you:
you're new to Javascript
you are a JavaScript developer and want to learn basic of Firebase Cloud Functions, Telegram, Telegraf, NodeJs
you want to create a Telegram Bot and deploy it to Firebase
you can create bots using another programming language and want to learn in practice how to create a bot using NodeJs and Telegraf
You will learn how to:
Register on Firebase
Create a Firebase Cloud Functions project
Create a local project
Get a Telegram API Token
Work with Telegraf Framework
Work with Weather API
Work with environment variables
Deploy the Telegram Bot to Firebase
See you shortly