π€ Bots.Business Multiple Channels Force Joined Check BJS Code π¨βπ»
βοΈAt First Make A /start Command Code.
example-
π©βπ» Command :
/startvar 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 :
/joinedvar 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 -
/checkif (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
π11β€7π₯°7π6π3π3π₯1