π4
Source code: https://github.com/Armanidrisi/play-store-api/
How To Deploy
https://youtu.be/txrw1uE3oRk
How To Deploy
https://youtu.be/txrw1uE3oRk
π5π±1
β
Send Mail Using Bot
FIRST COMMAND
Command ->
Bjs ->
SECOND COMMAND
Command->
Wait for answer : on
Bjs ->
THIRD COMMAND
Command -->
Wait for answer : on
Bjs-->
FOURTH COMMAND
Command-->
Bjs-->
FIRST COMMAND
Command ->
/mailBjs ->
Bot.sendMessage("*Enter The Email Adress*");
Bot.runCommand("Setmail")SECOND COMMAND
Command->
SetmailWait for answer : on
Bjs ->
User.setProperty("email",message)
Bot.sendMessage("*Enter The Subject*")
Bot.runCommand("SetSubject")THIRD COMMAND
Command -->
SetSubjectWait for answer : on
Bjs-->
User.setProperty("subject",message)
Bot.sendMessage("*Enter Your Message*")
Bot.runCommand("sendmessage")FOURTH COMMAND
Command-->
sendmessageBjs-->
const email = User.getProperty("email")
const subject = User.getProperty("subject")
const msg= message
HTTP.post({
url:"https://gmailapi-armanidrisi.vercel.app/api/mail/",
body:{
//Enter Your Email Here
sender: "youmail@gmail.com",
//Enter Your Password here
password:"yourpass",
recipient:email,
subject:subject,
message: msg
},
success: "suc"
})β€2π2π1
Use This API For Sending Emails
https://gmailapi-armanidrisi.vercel.app/api/mail/
Send Post Request
Example parameters :
https://gmailapi-armanidrisi.vercel.app/api/mail/
Send Post Request
Example parameters :
{"sender":"yourmail@gmail.com","password":"yourpass","recipient":"user mail","subject":"subject","message":"msg"}π1
How to find password for sending mail
https://telegra.ph/How-to-get-an-app-password-from-your-Gmail-08-31
Post credit : Jobians
https://telegra.ph/How-to-get-an-app-password-from-your-Gmail-08-31
Post credit : Jobians
π1
β»οΈ Find User Balance Bjs
βββββββββββ
Command - /find
Answer -
Wait for answer - on
Bjs -
βββββββββββ
Command - /find
Answer -
send his telegram idWait 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")
}Command -->
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
)
/startCodes --> 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
)
π5π±2π1
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