Coding with Mohit
الذهاب إلى القناة على Telegram
لا توجد بيانات
المشتركون
-624 ساعات
+377 أيام
+4230 أيام
أرشيف المشاركات
🔥 Friends, I've created a new channel regarding APIs.
👉 Here, you'll get free to use APIs.
🔗 Link : https://t.me/codingwithmohitapis
😘 All developers, join now.
#CodingWithMohit #CodingWithMohitAPIs
Repost from Coding with Mohit Tutorials
Should I continue the series using Bots.Business Language ( BJs ) or should we move to real coding ( node.js ) ?
✅ Command :
/spam
🔥 Code :
if (request.chat.type === "private") {
return Bot.sendMessage("This command is for groups only.");
}
const wrong = "Correct way to use this command : /spam {your message to spam like this in brackets} 10\n\nNote : The message will be in brackets as shown in the example & after that quantity with a space."
if (!params) {
return Bot.sendMessage(wrong, { is_reply: true });
}
let message = params.match(/\{(.*?)\}/);
let number = params.split("} ")[1];
if (!message && !number) {
return Bot.sendMessage(wrong, { is_reply: true });
}
let spamMessage = message[1];
for (var i = 0; i <= number; i++) {
spamMessage += `\n${message[1]}`;
}
if (spamMessage.length > 4096) {
return Bot.sendMessage("Your spam message is exceeding 4096 characters, please try again with small number.", { is_reply: true });
}
Bot.sendMessage(spamMessage, { is_reply: true });
😁 Just for Fun ! Try and tell in the comments how's it ?
😬 Credit : Coding with Mohit ©Repost from Coding with Mohit Tutorials
🎉 We’ve Completed Our First Telegram Bot Making Series!
- In this series, we explored the basics of Telegram bot development using Bots.Business and learnt how to create a Refer & Earn Bot. Here’s what we covered in this journey:
1️⃣ What is a Refer & Earn Bot?
2️⃣ How to Create a Telegram Bot?
3️⃣ Creating Commands for Telegram Bot
4️⃣ Sending Messages through Telegram Bot
5️⃣ Sending Text Messages to a User or Channel
6️⃣ Text Formatting with Markdown and HTML
7️⃣ JavaScript Variables
8️⃣ JavaScript Data Types
9️⃣ JavaScript Functions
🔟 JavaScript Conditional Statements (if-else)
1️⃣1️⃣ JavaScript Loops (for)
1️⃣2️⃣ Building Your Own Refer & Earn Bot
❤️ With your incredible support, we’ve successfully completed this first part of the Telegram Bot Making Series!🔗 Save this playlist because we’re planning to bring more exciting bot series in the future! 🚀 💫 Regards, Coding with Mohit / Coding with Mohit Tutorials © #BotsBusiness #CodingWithMohit #TelegramBotMakingSeries
Repost from Coding with Mohit Tutorials
😕 2 din se kuchh nahi kiya tha, aaj kar raha hu....
😅 Video kaafi long ho gaya to time lag raha edit karne me ( normal ). Aayega jaldi....
Repost from Coding with Mohit Tutorials
😕 2 din se kuchh nahi kiya tha, aaj kar raha hu....
😅 Video kaafi long ho gaya to to time lag raha edit karne me ( normal ). Aayega jaldi....
Repost from Coding with Mohit Tutorials
😮💨 Video bahut lamba jayega, pata na maine achhe se samjhaya hai ki nahi.
🙏 Bas aap log comments jarur karna ki samajh aaya ya nahi
Repost from Coding with Mohit Tutorials
All the Basics have been done in past 11 videos. Now it's time to code our Refer & Earn Bot.
The question is, should I code the whole bot in a Single Video ( will be lengthy ) or in Parts ?
