ch
Feedback
ADVANCE BOT CODERS

ADVANCE BOT CODERS

前往频道在 Telegram

Hello Guys Welcome To Our channel Here You Will Get All type bot Codes. 🚶‍♂️ Road To 2000 Subscribers ✔️ CONTACT ME : @Armanidrisi_bot 🐱 GITHUB : https://github.com/Armanidrisi

显示更多
未指定国家技术与应用37 549
2 038
订阅者
无数据24 小时
无数据7
无数据30
帖子存档
👬 Refer Link With QR BJS ➖➖➖➖➖➖➖➖ Command--> Your Command Bjs--> let stat = Bot.getProperty(""+user.telegramid+""); if (stat=="ban"){ Bot.sendMessage("*You're Ban*"); }else{ let res = Libs.ResourcesLib.userRes("referral"); let reflink=Libs.ReferralLib.currentUser.getRefLink(""+bot.name+"","Bot"); let lib = Libs.ReferralLib var refList = lib.currentUser.refList.get(); var txt = "*💡 Bot Refferal System 👨‍🌾 You can earn 1rs/per Successfull Refer Refer Amount When Credit Your Friends Join All Channnel. 👫 You have "+refList.length+" Referrals. 🚀 Your referal links : "+reflink+"*" var qrChartUrl = "https://chart.apis.google.com/chart?cht=qr&chs=250x250&" + "chl=" + reflink + "&chld=H|0" Api.sendPhoto({ photo: qrChartUrl, caption: txt, parse_mode: "markdown" }) }

❓ How To Add Password Validation In Bot 💡 Command = Your Command Here ♻️In Answer : = *Send The Password* ✅ Wait for answer = On 🌐 BJS = var pass = "Your Password Here Which You Want To Set" if (message == pass) { Bot.sendMessage("*✅Right Password*") Bot.runCommand("Your 2nd Command") } else { Bot.sendMessage("*⛔️Wrong Password*") } ©️ @botcodes123

Popup Alert Bjs ♻️ Api.answerCallbackQuery({callback_query_id: request.id,text: "Alert",show_alert: true })

#updated 🙂

Codes repo link:- git clone https://github.com/Armanidrisi/python-bot bot __ Commands :- 1. git clone <your git url> bot 2. cd bot 3. pip3 install -U -r requirements.txt 4. python main.py ___ How To Deploy --> https://youtu.be/z1UY8UjQpKw

Command--> 🚀 Refer And Earn Codes --> per_refer = "1 <i>Rs</i>" total_refer = str(User.getData("ref_count")) get_bot = "Demo_TelebotReferBot" u = str(u) link = f"https://t.me/{get_bot}?start={u}" msg = f""" ⚡️ <b><u>Per Refer</u></b> = {per_refer} 👩‍✈️ <b><i>Your Total Refferals</i></b>: {total_refer} <b>users</b> ➡️ <b><i>Your Referral Link</i></b> = {link} <b>🤑 <i>You Can Get Unlimited LTC By Reffer Your Friends</i></b> 🤑 """ bot.replyText(u, msg, parse_mode="html")

Command--> 📊 Stats Codes --> users = str(Bot.getData('total_users')) bot.replyText(u, f"*📊 Total bot members*: {users} *users*", parse_mode="markdown")

Command --> /setwallet Codes --> User.saveData('wallet', message.text) bot.replyText(u, "*🟩 Success Your Wallet*", parse_mode="markdown")

Command --> setwallet Codes--> bot.replyText(u, "♦️ *Send Your PayTM Number for Future Withdrawals*", parse_mode="markdown") Bot.handleNextCommand("/setwallet")

Command --> withdraw737 Codes --> def com(u): u = str(u) try: amount = int(message.text) bal = float(User.getData('balance')) wallet=User.getData("wallet") except: bot.replyText( u, "*❗️ Invalid amount send positive number and without decimals numbers only*", parse_mode="markdown") return if amount < 1: bot.replyText(u, "❗️ *Minimum withdraw amount is 1*", parse_mode="markdown") return if amount > float(bal): bot.replyText(u, "❗️ *Amount is bigger then your balance*", parse_mode="markdown") return payment_channel = "@testpostchnl" # Enter your channel username instead of None username = str(Bot.info().username) u = str(u) amount = str(amount) wallet=str(wallet) currency = "Rs" # Enter your currency instead of None balance = bal-float(amount) User.saveData("balance", balance) if payment_channel != "None": bot.replyText( chat_id=payment_channel, text=f""" <b>✅ New Withdraw Paid 🙅 User :- {u} 💵 Amount :- </b>{amount}<b> {currency} 🗽 Status :- Paid 💞 Wallet : {wallet} 🤖 Bot link</b> :- @{username}""", parse_mode="html" ) bot.replyText( chat_id=u, text=f""" <b>✅ Withdraw paid 🙅 User :- {u} 💵 Amount :- </b>{amount}<b> {currency} 🗽 Status :- Paid 🤖 Bot link</b> :- @{username}""", parse_mode="html" ) else: bot.replyText( chat_id=u, text=f""" <b>✅ Withdraw paid 🙅 User :- {u} 💵 Amount :-</b> {amount} <b>{currency} 🗽 Status :- Paid 🤖 Bot link</b> :- @{username}""", parse_mode="html" ) com(u)

Command --> 📤 Withdraw Codes --> def withdraw(): wall = User.getData("wallet") bal = User.getData("balance") Mini_Withdraw = "1" if bal == None: return if wall == None: markup = InlineKeyboardMarkup() markup.add(InlineKeyboardButton( text='✅ Set wallet', callback_data='setwallet')) bot.replyText(u, "<b>❇️ Current wallet:</b> <code>Not set</code>️n<b>‼️ Please set your wallet first For withdraw</b>", parse_mode="html", reply_markup=markup) return if bal >= 1: bot.replyText(u, "<b>⚠️ Enter amount to withdraw Your paytm cash.</b>", parse_mode="html") Bot.handleNextCommand("withdraw737") else: bot.replyText( u, "<i>❌ Your balance low you should have at least "+Mini_Withdraw+" Rs to Withdraw</i>", parse_mode="html") return withdraw()

Command --> 💻 Profile Codes --> balance = str(User.getData("balance")) wallet = str(User.getData('wallet')) user = str(u) msg = f"""🧕 <b>User</b>: {user} 🔑 <b>Wallet</b>: <code>{wallet}</code> 💳 <b>Balance</b>: {balance} <i>Rs</i>""" bot.replyText(u, msg, parse_mode="html")

Command--> 🔧 Set Wallet Codes --> wallet = User.getData("wallet") markup = InlineKeyboardMarkup() markup.add(InlineKeyboardButton( text='⚙️ Set Wallet', callback_data='setwallet') ) bot.replyText( chat_id = message.chat.id, text = f"""<b>❇️ Current wallet: <code>{wallet}</code> 🔰 To change wallet click '⚙️ Set wallet' button</b>""", reply_markup = markup, parse_mode = "html" )

Command --> 🟢 Joined Codes --> def check(): channels = ['@testpostchnl'] for i in channels: check = bot.getChatMember(str(i), u) if check.status != 'left': pass else: return False return True if check() == True: keyboard = ReplyKeyboardMarkup(True) keyboard.row("💻 Profile", "🔧 Set Wallet") keyboard.row("📤 Withdraw", "📊 Stats") keyboard.row("🚀 Refer And Earn") bot.replyText( chat_id = message.chat.id, text = "*🏡 Main Menu*", reply_markup = keyboard, parse_mode="markdown" ) else: bot.replyText(u, "*❌ You need to join our channels First.*" ,parse_mode = "markdown")

Command --> /start Codes --> text = """<b>⛔️ Must Join All Our Channel ✅ @testpostchnl ❇️ After Joining, Click On '🟢 Joined'</b>""" is_invited = User.getData("is_invited") u = str(u) already = User.getData('bot_user') if already != None: pass else: User.saveData('balance', 0) User.saveData('ref_count', 0) User.saveData('withdrawn', 0) User.saveData('bot_user', True) if Bot.getData('total_users') == None: Bot.saveData('total_users', 1) else: t = int(Bot.getData('total_users'))+1 Bot.saveData('total_users', t) # bot.replyText(u, str(Bot.getData('total_users'))) keyboard = ReplyKeyboardMarkup(True) keyboard.row('🟢 Joined') refer = message.text.split(" ") if message.text == "/start": if is_invited == None: User.saveData('is_invited', True) bot.replyText( chat_id=u, text=text, parse_mode="html", reply_markup=keyboard ) else: if str(u) == refer[1]: if is_invited == None: User.saveData("is_invited", True) bot.replyText( chat_id=u, text=text, parse_mode="html", reply_markup=keyboard ) else: if is_invited == None: refer_balance = User.getData("balance", user=refer[1]) count = User.getData('ref_count', user=refer[1]) if refer_balance == None: bot.replyText( chat_id=u, text="<b>Invalid referral.</b>" ) refer_balance = float(refer_balance) refer_balance += 1 count = int(count) count += 1 bot.replyText( chat_id=refer[1], text=f"<b>🎁 +1 For new Refer</b>", parse_mode="html" ) User.saveData("ref_count", data=count, user=refer[1]) User.saveData("balance", data=refer_balance, user=refer[1]) bot.replyText( chat_id=u, text=f"<b>🎁 You are invited by {refer[1]}</b>", parse_mode="html" ) refer_balance = User.getData("balance", user=refer[1]) User.saveData("is_invited", True) bot.replyText( chat_id=u, text=text, parse_mode="html", reply_markup=keyboard )

♻️ Find User Balance Bjs ➖➖➖➖➖➖➖➖➖➖➖ Command - /find Answer - send his telegram id Wait for answer - on Bjs - const admin = Bot.getProperty("admin"+user.telegramid) if(user.telegramid == admin){ var b = Libs.ResourcesLib.anotherUserRes("balance",message) Bot.sendMessage("*Balance Of User "+message+" is* "+b.value()) }else{ Bot.sendMessage("You Are Not An Admin") }

Want Best Platform for Host php bot free
Anonymous voting