๐ Welcome to BJSkillBuilder! ๐
Hey there, Skill Builders! ๐โจ
Weโre SUPER excited to kick off our journey with you on this channel! ๐ Are you ready to unlock your potential and level up your skills? Whether you want to master a new hobby, boost your career, or just learn something fun, youโve come to the right place! ๐
๐ Whatโs Coming Your Way:
โข ๐ Skill Tutorials: Easy-to-follow guides on everything from coding ๐ป to creative arts ๐จ!
โข ๐ฃ๏ธ Expert Interviews: Get insider tips from industry pros who are ready to share their secrets! ๐คซ
โข ๐ Fun Challenges: Participate in exciting activities to put your new skills to the test and show off your progress! ๐
โข ๐ค Community Support: Connect with fellow learners, share your journey, and ask all the questions you have! ๐ฌ
๐ก We Want to Hear from YOU!
What skills are you eager to learn? Drop a comment below and let us know! We canโt wait to create content that YOU want to see! ๐ฏ
Stay tuned for our very first tutorial coming soon! Letโs embark on this amazing learning adventure together! ๐โจ
Happy Learning,
The BJSkillBuilder Team ๐
โ Want to donate us
https://t.me/DonatePB_Bot?start=donate
Hey there, Skill Builders! ๐โจ
Weโre SUPER excited to kick off our journey with you on this channel! ๐ Are you ready to unlock your potential and level up your skills? Whether you want to master a new hobby, boost your career, or just learn something fun, youโve come to the right place! ๐
๐ Whatโs Coming Your Way:
โข ๐ Skill Tutorials: Easy-to-follow guides on everything from coding ๐ป to creative arts ๐จ!
โข ๐ฃ๏ธ Expert Interviews: Get insider tips from industry pros who are ready to share their secrets! ๐คซ
โข ๐ Fun Challenges: Participate in exciting activities to put your new skills to the test and show off your progress! ๐
โข ๐ค Community Support: Connect with fellow learners, share your journey, and ask all the questions you have! ๐ฌ
๐ก We Want to Hear from YOU!
What skills are you eager to learn? Drop a comment below and let us know! We canโt wait to create content that YOU want to see! ๐ฏ
Stay tuned for our very first tutorial coming soon! Letโs embark on this amazing learning adventure together! ๐โจ
Happy Learning,
The BJSkillBuilder Team ๐
โ Want to donate us
https://t.me/DonatePB_Bot?start=donate
๐7๐ฅ3โค2
๐ Day 1: Welcome to Bots.Business and JavaScript Basics! ๐
Hi everyone! ๐ Welcome to Day 1 of our 30-Day Bots.Business JavaScript (BJS) Learning Session! ๐ Today, weโre starting our exciting journey into the world of bots. ๐คโจ Weโll learn the basics of Bots.Business and a little bit about JavaScript. ๐ป
---
โWhat is Bots.Business? ๐ค
Bots.Business is a cool platform that helps you create and manage bots easily. Youโll use a special version of JavaScript called Bots.Business JavaScript (BJS). Donโt worry if youโve never coded beforeโthis is made for beginners! ๐ฑ
โWhy Use Bots.Business? ๐
โข Easy to Use: You can start making bots quickly. โก
โข Great Features: Use helpful tools to make your bots even better. ๐ ๏ธ
โข Many Uses: Create bots for Telegram, automate responses, and more! ๐ฒ
---
โWhat is JavaScript? ๐
JavaScript is a popular programming language that makes websites interactive. Itโs also used to create bots! In our learning session, weโll work with a simpler version called BJS (Bots.Business JavaScript). ๐
---
โLetโs Get Started! ๐
1. Create Your First Bot ๐ค
โข Log in to the Bots.Business platform. ๐
โข Give your bot a fun name! ๐
2. Set Up a Command ๐ฌ
โข Bots respond to commands. Youโll set one up today!
โข Example: Create a command called
โข "Welcome to my first bot! Letโs get started!" ๐
3. Test Your Bot ๐งช
โข Connect your bot to Telegram using the BotFather token. ๐
โข Try out the
---
โExample: Your First Script ๐
Letโs make your bot send a welcome message when someone starts it. Hereโs how:
โข Go to your botโs Command Editor. ๐ ๏ธ
โข Create a command (like
Now, when you type
"Hello! This is my first Bots.Business bot." ๐๐ค
---
โYour Assignment for Day 1 ๐
1. Create your first bot and give it a fun name. ๐
2. Set up a
3. Test your bot by sending the
Bonus: Try adding a
---
โWhatโs Next? ๐ฎ
Join us tomorrow for Day 2, where weโll learn more about how bots work and how they handle commands. Keep experimenting, have fun, and let your creativity shine! โจ
Happy bot building! ๐๐
Hi everyone! ๐ Welcome to Day 1 of our 30-Day Bots.Business JavaScript (BJS) Learning Session! ๐ Today, weโre starting our exciting journey into the world of bots. ๐คโจ Weโll learn the basics of Bots.Business and a little bit about JavaScript. ๐ป
---
โWhat is Bots.Business? ๐ค
Bots.Business is a cool platform that helps you create and manage bots easily. Youโll use a special version of JavaScript called Bots.Business JavaScript (BJS). Donโt worry if youโve never coded beforeโthis is made for beginners! ๐ฑ
โWhy Use Bots.Business? ๐
โข Easy to Use: You can start making bots quickly. โก
โข Great Features: Use helpful tools to make your bots even better. ๐ ๏ธ
โข Many Uses: Create bots for Telegram, automate responses, and more! ๐ฒ
---
โWhat is JavaScript? ๐
JavaScript is a popular programming language that makes websites interactive. Itโs also used to create bots! In our learning session, weโll work with a simpler version called BJS (Bots.Business JavaScript). ๐
---
โLetโs Get Started! ๐
1. Create Your First Bot ๐ค
โข Log in to the Bots.Business platform. ๐
โข Give your bot a fun name! ๐
2. Set Up a Command ๐ฌ
โข Bots respond to commands. Youโll set one up today!
โข Example: Create a command called
/start and make it say:โข "Welcome to my first bot! Letโs get started!" ๐
3. Test Your Bot ๐งช
โข Connect your bot to Telegram using the BotFather token. ๐
โข Try out the
/start command and see your bot in action! ๐---
โExample: Your First Script ๐
Letโs make your bot send a welcome message when someone starts it. Hereโs how:
Bot.sendMessage("Hello! This is my first Bots.Business bot.");โข Go to your botโs Command Editor. ๐ ๏ธ
โข Create a command (like
/hello) and paste that code there.Now, when you type
/hello in Telegram, your bot will reply with:"Hello! This is my first Bots.Business bot." ๐๐ค
---
โYour Assignment for Day 1 ๐
1. Create your first bot and give it a fun name. ๐
2. Set up a
/start command with your welcome message. ๐ฌ3. Test your bot by sending the
/start command in Telegram. ๐ฒBonus: Try adding a
/hello command using the example code! ๐---
โWhatโs Next? ๐ฎ
Join us tomorrow for Day 2, where weโll learn more about how bots work and how they handle commands. Keep experimenting, have fun, and let your creativity shine! โจ
Happy bot building! ๐๐
1๐7โค5๐ฅ1
What is the correct way to make your bot send a "Hello!" message when the user types /hello?
Final Results
81%
Bot.sendMessage("Hello!");
2%
console.log("Hello!");
5%
Add "Hello!" in the bot's description.
12%
Bots can't respond to /hello commands.
๐3
โDay 2: Bot Commands and Responses ๐
Welcome to Day 2 of the 30-Day Bots.Business JavaScript (BJS) Learning Session! ๐ Yesterday, we covered the basics of Bots.Business and created a simple bot with a /start command. Today, weโll dive deeper into commands and learn how to make your bot respond to user input dynamically. ๐ฌ
---
โWhat Are Commands? โ
In Bots.Business, commands are the backbone of your bot. Each command is a specific trigger that tells your bot how to respond when a user sends a particular message. Commands can have predefined text responses or JavaScript code for more dynamic actions. โ๏ธ
---
โHow to Create Commands ๐ ๏ธ
1. Step 1: Open the Command Editor
Go to your botโs Commands section in the Bots.Business dashboard. ๐
2. Step 2: Add a New Command
Create a new command by typing its name (e.g., /info, /help). โ๏ธ
Add the response or JavaScript code you want the bot to execute when the command is triggered. ๐
3. Step 3: Save and Test
Save the command and test it in Telegram by typing the command in your bot's chat. ๐ฑ
---
โStatic Response Example ๐
Letโs create a simple command called
โข Command Name:
โข Response: "Welcome to the help section! Use /start to begin or /info to learn more about me." ๐
When a user types
---
โDynamic Response Example Using JavaScript ๐ป
You can use JavaScript to make responses more dynamic. For example, letโs create a
โข Create a command
โข Add the above script to the command.
โข Save and test it by typing
If the userโs first name is John, the bot will reply:
"Hello, John! How can I assist you today?" ๐
---
โHandling Custom Inputs ๐จ
You can also create commands to handle inputs from users. For instance, letโs create a
To handle the userโs reply, you can create another command to capture their response. For example:
---
โAssignment for Day 2 ๐
1. Create a command
"This is a demo bot created with Bots.Business JavaScript. Stay tuned for more!" ๐
2. Create a dynamic command
3. Optional Challenge:
Create a command
---
โWhatโs Next? ๐ฎ
Tomorrow, in Day 3, weโll explore Variables in Bots.Business JavaScript. Variables will allow us to store and manipulate user data to create more personalized and interactive bots. Keep practicing and experimenting! ๐ช
Welcome to Day 2 of the 30-Day Bots.Business JavaScript (BJS) Learning Session! ๐ Yesterday, we covered the basics of Bots.Business and created a simple bot with a /start command. Today, weโll dive deeper into commands and learn how to make your bot respond to user input dynamically. ๐ฌ
---
โWhat Are Commands? โ
In Bots.Business, commands are the backbone of your bot. Each command is a specific trigger that tells your bot how to respond when a user sends a particular message. Commands can have predefined text responses or JavaScript code for more dynamic actions. โ๏ธ
---
โHow to Create Commands ๐ ๏ธ
1. Step 1: Open the Command Editor
Go to your botโs Commands section in the Bots.Business dashboard. ๐
2. Step 2: Add a New Command
Create a new command by typing its name (e.g., /info, /help). โ๏ธ
Add the response or JavaScript code you want the bot to execute when the command is triggered. ๐
3. Step 3: Save and Test
Save the command and test it in Telegram by typing the command in your bot's chat. ๐ฑ
---
โStatic Response Example ๐
Letโs create a simple command called
/help that responds with a static message:โข Command Name:
/help โข Response: "Welcome to the help section! Use /start to begin or /info to learn more about me." ๐
When a user types
/help, the bot will reply with this predefined text.---
โDynamic Response Example Using JavaScript ๐ป
You can use JavaScript to make responses more dynamic. For example, letโs create a
/greet command that uses the userโs name to greet them:Bot.sendMessage("Hello, " + user.first_name + "! How can I assist you today?");
โข Create a command
/greet in the Command Editor. โจ โข Add the above script to the command.
โข Save and test it by typing
/greet in your botโs chat. โ
If the userโs first name is John, the bot will reply:
"Hello, John! How can I assist you today?" ๐
---
โHandling Custom Inputs ๐จ
You can also create commands to handle inputs from users. For instance, letโs create a
/ask command that prompts the user for their favorite color:Bot.sendMessage("Whatโs your favorite color?");
To handle the userโs reply, you can create another command to capture their response. For example:
Bot.sendMessage("Nice choice! I love that color too.");
---
โAssignment for Day 2 ๐
1. Create a command
/about with the static response: "This is a demo bot created with Bots.Business JavaScript. Stay tuned for more!" ๐
2. Create a dynamic command
/myname that replies with the userโs name. Use this script: Bot.sendMessage("Hi, " + user.first_name + "! Nice to meet you.");
3. Optional Challenge:
Create a command
/askcolor that asks the user their favorite color and responds dynamically to their input. (Hint: Use a callback command to handle the input.) ๐ฏ---
โWhatโs Next? ๐ฎ
Tomorrow, in Day 3, weโll explore Variables in Bots.Business JavaScript. Variables will allow us to store and manipulate user data to create more personalized and interactive bots. Keep practicing and experimenting! ๐ช
๐7โค2๐ฅ1
Coding Skill Builder ๐ช๐(Full AI Based)
Bot.sendMessage("Hi, " + user.first_name + "! Nice to meet you.");
To add both the first name and last name in the message, you can modify the code as follows:
By adding
Bot.sendMessage("Hi, " + user.first_name + " " + user.last_name + "! Nice to meet you.");
By adding
user.last_name next to user.first_name with a space in between, you will include both the first name and last name in the greeting message. This code will now address the user by their first name and last name, making the message more personalized.1โค3๐3
โDay 3: Using Variables in Bots.Business JavaScript (BJS)
Welcome to Day 3! Today, weโll dive deeper into using variables in your bot to enhance its interactivity and personalization.
---
โWhat Are Variables?
Variables are essential components in programming that allow you to store and manage data. In the context of Bots.Business JavaScript, variables can help you:
โข Remember user-specific information: such as names, ages, and preferences.
โข Track statistics: like the number of interactions or scores.
โข Pass data between commands.
You can store various types of data in variables, including strings (text), numbers, and more.
---
โHow to Use Variables in BJS
1. Declaring a Variable
To create a variable and assign it a value:
2. Using a Variable
You can use the variable to send messages or perform actions:
3. Modifying a Variable
To change the value of a variable:
---
โWorking with User-Specific Variables
In Bots.Business, user-specific data is often managed using
โStoring Data: User.setProperty()
To store user-specific data:
โข key: Unique identifier (e.g., "name", "age").
โข value: The data to store (e.g., "John", 25).
โข type: The type of data (e.g., "string", "number", "boolean").
Example:
โRetrieving Data: User.getProperty()
To retrieve stored data:
---
โExample: Storing and Using a Name
Letโs create two commands:
1. Command: /setname
2. Command: /getname
---
โExample: Counting User Interactions
You can track how many times a user interacts with your bot using variables.
1. Command: /interact
---
โAssignment for Day 3
1. Create a command
โข Hint: Use
2. Create a command
โข Hint: Use
3. Bonus Challenge:
โข Create a command
โข Hint: Use
---
โWhatโs Next?
In Day 4, we will explore conditions (if/else statements) and how to make your bot respond differently based on user input or stored variables. Keep practicing what youโve learned today, and feel free to share your progress! Happy coding!
Welcome to Day 3! Today, weโll dive deeper into using variables in your bot to enhance its interactivity and personalization.
---
โWhat Are Variables?
Variables are essential components in programming that allow you to store and manage data. In the context of Bots.Business JavaScript, variables can help you:
โข Remember user-specific information: such as names, ages, and preferences.
โข Track statistics: like the number of interactions or scores.
โข Pass data between commands.
You can store various types of data in variables, including strings (text), numbers, and more.
---
โHow to Use Variables in BJS
1. Declaring a Variable
To create a variable and assign it a value:
let myVariable = "Hello, World!";
2. Using a Variable
You can use the variable to send messages or perform actions:
Bot.sendMessage(myVariable);
3. Modifying a Variable
To change the value of a variable:
let myVariable = "Goodbye, World!";
---
โWorking with User-Specific Variables
In Bots.Business, user-specific data is often managed using
User.setProperty and User.getProperty methods.โStoring Data: User.setProperty()
To store user-specific data:
User.setProperty("key", value, "string");
โข key: Unique identifier (e.g., "name", "age").
โข value: The data to store (e.g., "John", 25).
โข type: The type of data (e.g., "string", "number", "boolean").
Example:
User.setProperty("name", "John", "string");
โRetrieving Data: User.getProperty()
To retrieve stored data:
let name = User.getProperty("name");
Bot.sendMessage("Your name is: " + name);
---
โExample: Storing and Using a Name
Letโs create two commands:
/setname to store the userโs name and /getname to retrieve it.1. Command: /setname
// Assume user input is captured in userInput
User.setProperty("name", userInput, "string"); // Replace userInput with actual input
Bot.sendMessage("Your name has been saved!");
2. Command: /getname
let name = User.getProperty("name");
Bot.sendMessage("Your saved name is: " + name);
---
โExample: Counting User Interactions
You can track how many times a user interacts with your bot using variables.
1. Command: /interact
let count = User.getProperty("interaction_count") || 0; // Default to 0 if not set
count += 1;
User.setProperty("interaction_count", count, "number");
Bot.sendMessage("You have interacted with this bot " + count + " times!");
---
โAssignment for Day 3
1. Create a command
/saveage that asks the user for their age and stores it in a variable.โข Hint: Use
User.setProperty("age", userInput, "number");.2. Create a command
/getage that retrieves and displays the saved age.โข Hint: Use
User.getProperty("age");.3. Bonus Challenge:
โข Create a command
/reset that clears the saved age and interaction count.โข Hint: Use
User.setProperty("key", null); to reset a variable.---
โWhatโs Next?
In Day 4, we will explore conditions (if/else statements) and how to make your bot respond differently based on user input or stored variables. Keep practicing what youโve learned today, and feel free to share your progress! Happy coding!
๐5๐ฅ3
Hey learners! ๐
You've completed 3 days of the Bots.Business learning session. It's time to put your knowledge to the test! ๐ช
You've completed 3 days of the Bots.Business learning session. It's time to put your knowledge to the test! ๐ช
1๏ธโฃ What will this script do?
Bot.sendMessage("Hello, " + user.first_name + "!");๐4
2๏ธโฃ How do you save a userโs name in a variable?
3๏ธโฃ What will this code do?
let count = User.getProperty("interaction_count") || 0;
count += 1;
User.setProperty("interaction_count", count, "number");
Bot.sendMessage("Youโve interacted " + count + " times!");๐1