@jsorganization · Post #624 · 21.09.2024 г., 07:52
🤖 Bots.Business Multiple Channels Force Joined Check BJS Code👨💻 ❗️At First Make A /start Command Code. example- 👩💻 Command : /start var button = [{title: "✅ Joined", command:"/joined"}]; Bot.sendInlineKeyboard(button, "*🌟 Join Our All Channels To Use Our Bot 👇\n@PublicDiaryOfficial \n@TapSwapMiningOfficial\n@JSEarnMony\nAfter Joined Click On ✅ Joined*"); ❗️Then /joined Command Code 👩💻 Command : /joined var channels = ["@PublicDiaryOfficial","@JSEarnMoney","@TapSwapMiningOfficial"]; // Array of Your Multiple channels HTTP.get({ url: "https://api.jsorganization.xyz/Bot/ChannelJoinCheck.php?bot_token=" + bot.token + "&user_id=" + user.telegramid + "&chat_id=" + channels, success: "/check" }); ❗️ Then /check Command Code 👩💻Command - /check if (content) { const { status, is_joined } = JSON.parse(content); if (status === "false") { return Bot.sendMessage("*Please make the bot an admin on your All channels*"); } if (is_joined) { Bot.sendMessage("Thank You For Join Our Channels!"); /*Bot.runCommand("MainMenu")*/ } else { Bot.sendMessage("*⚠️ You need to join all channels To Use Our Bot.*"); } } ❗️Donot Change Any Command Name ❗️Make The bot Admin in Your Multiple Channels ❗️You Can run Your Main menu Command Using Bot.runCommand(" MainMenu") ©@JSOrganization ©@itsSowrov Contact With Us If You Face Any Problem Or errors #Multiple#MultipleChannel#MultipleJoin#MultipleChannelsCheck#MultipleCheck#BotsBusiness#JSOrganization#BJS