Command -->
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")
π’ JoinedCodes --> 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-->
Codes -->
π§ Set WalletCodes -->
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 -->
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")
π» ProfileCodes --> 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")
π2
Command -->
Codes -->
π€ WithdrawCodes -->
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()π3
Command -->
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)
withdraw737Codes --> 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)
π2
Command -->
Codes-->
setwalletCodes-->
bot.replyText(u, "β¦οΈ *Send Your PayTM Number for Future Withdrawals*", parse_mode="markdown")
Bot.handleNextCommand("/setwallet")Command -->
Codes -->
/setwalletCodes -->
User.saveData('wallet', message.text)
bot.replyText(u, "*π© Success Your Wallet*", parse_mode="markdown")Command-->
Codes -->
π StatsCodes -->
users = str(Bot.getData('total_users'))
bot.replyText(u, f"*π Total bot members*: {users} *users*", parse_mode="markdown")Command-->
Codes -->
π Refer And EarnCodes -->
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")π4β€1
Python Refer And Earn Bot Codes
Start --> https://t.me/botcodes123/896
End --> https://t.me/botcodes123/905
How To Use --> https://youtu.be/HxDPyWn129U
https://youtu.be/HxDPyWn129U
Start --> https://t.me/botcodes123/896
End --> https://t.me/botcodes123/905
How To Use --> https://youtu.be/HxDPyWn129U
https://youtu.be/HxDPyWn129U
π3
Codes repo link:- https://github.com/Armanidrisi/python-bot
__
Commands :-
1. git clone <your
4.
__
Commands :-
1. git clone <your
git url> bot
2. cd bot
3. pip3 install -U -r requirements.txt4.
python main.py___
How To Deploy --> https://youtu.be/z1UY8UjQpKwπ4β€1π₯°1π€1
Popup Alert Bjs β»οΈ
Api.answerCallbackQuery({callback_query_id: request.id,text: "Alert",show_alert: true })π6
β How To Add Password Validation In Bot
π‘ Command = Your Command Here
β»οΈIn Answer : =
β Wait for answer = On
π BJS =
Β©οΈ @botcodes123
π‘ 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
π2
π¬ Refer Link With QR BJS
ββββββββ
Command--> Your Command
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"
})
}π5
Transfer Balance βΏ BJS
ββββββββ
β»οΈ Command =
β»οΈ Answer =
β»οΈ Wait For Answer = On
β»οΈ BJS =
π Now, Make A New Another Command.
β»οΈ Command =
β»οΈ Answer =
β»οΈ Wait For Answer = On
β»οΈ BJS =
ββββββββ
β»οΈ Command =
Transferβ»οΈ Answer =
Enter Your Friend Telegram Id For Transfer Your Balance.β»οΈ Wait For Answer = On
β»οΈ BJS =
Bot.run({
command: "/Transfer",
options: { tgid : message }
})π Now, Make A New Another Command.
β»οΈ Command =
/Transferβ»οΈ Answer =
π Enter An Amount For Sending To Your Friend's Account.
β οΈ Note = It Will Deducated From Your Account Balance.β»οΈ Wait For Answer = On
β»οΈ BJS =
var balance = Libs.ResourcesLib.userRes("balance")
var tgid = options.tgid
if(message > balance.value()) {
Bot.sendMessage("β οΈ Insufficient Balance For This Transaction.
π You Have Only "+balance.value()+" Rs.")
}else{
var friend = Libs.ResourcesLib.anotherUserRes("balance",tgid)
friend.add(+message)
balance.add(-message)
Bot.sendMessage("β
Amount "+message+" Rs Has Been Transfer To "+tgid+".
π΅ Your Current Balance : "+balance.value()+" Rs.")
}π7β€1
NodeJsCBBot.zip
83.3 KB
π8
urlshort By (Arman Idrisi).zip
4.2 KB
π Url Shortner PHP Giveaway
β Developer: @Mohd_arman_idrisi01
π Join: @botcodes123
β»οΈDemo: http://armancampaigns.tk/Short
β Developer: @Mohd_arman_idrisi01
π Join: @botcodes123
β»οΈDemo: http://armancampaigns.tk/Short
π6