Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sorovnoma_2():
- clr()
- banner()
- kirish_1 = "\n[yellow2][1] [bright_white]1 ta kanalga qoshilish\n[yellow2][2] [bright_white]2 ta kanlga qoshilish\n[yellow2][2] [bright_white]3 ta kanlag qoshilish\n[yellow2][4] [bright_white]4 ta kanalga qoshilish\n[yellow2][5] [bright_white]5 ta kanalga qoshilish\n[yellow2][6] [bright_white]6 ta kanlga qoshilish\n[yellow2][7] [bright_white]Asosiy menyuga qaytish\n"
- panel_k1 = Panel(kirish_1, title="[blue]ALPHA", subtitle="[yellow2]FILTER", width=terminal_width)
- console.print(panel_k1)
- choice = int(input(ye + "\nKerakli funksiya raqamni kiriting : " +w))
- config = configparser.ConfigParser()
- config.read("sozlamalar.ini")
- api_key1 = (config['Alpha']['api_key']).strip()
- link = (config['Alpha']['bot_username']).strip()
- kanal1 = (config['Alpha']['link_kanal_1']).strip()
- kanal2 = (config['Alpha']['link_kanal_2']).strip()
- kanal3 = (config['Alpha']['link_kanal_3']).strip()
- kanal4 = (config['Alpha']['link_kanal_4']).strip()
- kanal5 = (config['Alpha']['link_kanal_5']).strip()
- kanal6 = (config['Alpha']['link_kanal_6']).strip()
- kanal_1= kanal1.split("https://t.me/")[1]
- kanal_2= kanal2.split("https://t.me/")[1]
- kanal_3= kanal3.split("https://t.me/")[1]
- kanal_4= kanal4.split("https://t.me/")[1]
- kanal_5= kanal4.split("https://t.me/")[1]
- kanal_6= kanal6.split("https://t.me/")[1]
- knopka1 = int(input(f"\n{gr}1 chi konopka tartib raqamini kiriting :{w}"))
- knopka2 = int(input(f"\n{r}2 chi konopka tartib raqamini kiriting :{w}"))
- async def main():
- MadeByDevOp = []
- done = False
- with open('phone.csv', 'r') as f:
- str_list = [row[0] for row in csv.reader(f)]
- indexx = 0
- for pphone in str_list:
- indexx += 1
- phone = str(pphone)
- print(f"\n\n{b}Accaunt No: [{indexx}] {ye}{phone}")
- try:
- app = Client(f"memory/{phone}", int(IdToUse), ApiToUse)
- await app.start()
- men = await app.get_me()
- ism = men.first_name
- familya = men.last_name
- except Exception as e:
- print(e)
- try:
- if choice == 1:
- await app.join_chat(kanal_1)
- print(f"{ye}{kanal_1} {b}<== Qoshilmoqda")
- time.sleep(3)
- if choice == 2:
- await app.join_chat(kanal_1)
- print(f"{ye}{kanal_1} {b}<== Qoshilmoqda")
- await app.join_chat(kanal_2)
- print(f"{ye}{kanal_2} {b}<== Qoshilmoqda")
- time.sleep(3)
- if choice == 3:
- await app.join_chat(kanal_1)
- print(f"{ye}{kanal_1} {b}<== Qoshilmoqda")
- await app.join_chat(kanal_2)
- print(f"{ye}{kanal_2} {b}<== Qoshilmoqda")
- await app.join_chat(kanal_3)
- print(f"{ye}{kanal_3} {b}<== Qoshilmoqda")
- time.sleep(3)
- if choice == 4:
- await app.join_chat(kanal_1)
- print(f"{ye}{kanal_1} {b}<== Qoshilmoqda")
- await app.join_chat(kanal_2)
- print(f"{ye}{kanal_2} {b}<== Qoshilmoqda")
- await app.join_chat(kanal_3)
- print(f"{ye}{kanal_3} {b}<== Qoshilmoqda")
- await app.join_chat(kanal_4)
- print(f"{ye}{kanal_4} {b}<== Qoshilmoqda")
- time.sleep(3)
- if choice == 5:
- await app.join_chat(kanal_1)
- print(f"{ye}{kanal_1} {b}<== Qoshilmoqda")
- await app.join_chat(kanal_2)
- print(f"{ye}{kanal_2} {b}<== Qoshilmoqda")
- await app.join_chat(kanal_3)
- print(f"{ye}{kanal_3} {b}<== Qoshilmoqda")
- await app.join_chat(kanal_4)
- print(f"{ye}{kanal_4} {b}<== Qoshilmoqda")
- await app.join_chat(kanal_5)
- print(f"{ye}{kanal_5} {b}<== Qoshilmoqda")
- time.sleep(3)
- if choice == 6:
- await app.join_chat(kanal_1)
- print(f"{ye}{kanal_1} {b}<== Qoshilmoqda")
- await app.join_chat(kanal_2)
- print(f"{ye}{kanal_2} {b}<== Qoshilmoqda")
- await app.join_chat(kanal_3)
- print(f"{ye}{kanal_3} {b}<== Qoshilmoqda")
- await app.join_chat(kanal_4)
- print(f"{ye}{kanal_4} {b}<== Qoshilmoqda")
- await app.join_chat(kanal_5)
- print(f"{ye}{kanal_5} {b}<== Qoshilmoqda")
- await app.join_chat(kanal_6)
- print(f"{ye}{kanal_6} {b}<== Qoshilmoqda")
- time.sleep(3)
- if choice == 7:
- menyu()
- except Exception as e:
- print(e)
- continue
- try:
- await app.send_message(link, "/start")
- print(f"{ye}Start {w}<=== {b}Xabari yuborildi")
- time.sleep(3)
- await app.send_contact(link, phone_number=phone, first_name=ism)
- time.sleep(3)
- async for message in app.get_chat_history(link, limit=1):
- print(f"{r}Xabar {w}===> {r}Keldi")
- print(message.text)
- m1 = await app.get_messages(link, message.id)
- time.sleep(3)
- await m1.click(0)
- print(f"{b}Knopka bosildi✅")
- await app.send_message(link, "Овоз бериш")
- print(f"{ye}Овоз бериш {w}<== {b}Xabari yuborildi")
- time.sleep(3)
- try:
- async for message in app.get_chat_history(link, limit=1):
- print(f"{r}Xabar {w}===> {r}Keldi")
- print(message.text)
- m = await app.get_messages(link, message.id)
- #print(m)
- await m.click(knopka1)
- print(f"{b}1-Knopka bosildi✅")
- except Exception as e:
- print(e)
- pass
- try:
- async for message in app.get_chat_history(link, limit=1):
- print(f"{r}Xabar {w}===> {r}Keldi")
- print(message.text)
- m1 = await app.get_messages(link, message.id)
- time.sleep(3)
- await m1.click(knopka2)
- print(f"{b}2-Knopka bosildi✅")
- except Exception as e:
- print(e)
- pass
- try:
- async for message in app.get_chat_history(link, limit=1):
- #print(message)
- photo = message.photo
- await app.download_media(photo, file_name="rasm.jpg")
- print(f"{gr}kapcha rasmi yuklandi✅")
- api_key = api_key1
- captcha_fp = open('downloads/rasm.jpg', 'rb')
- client = AnticaptchaClient(api_key)
- task = ImageToTextTask(captcha_fp)
- job = client.createTask(task)
- job.join()
- texet = job.get_captcha_text()
- print(f"{b}Kapcha kodi {r}===> {ye}{texet}")
- await app.send_message(link, texet)
- time.sleep(3)
- async for message in app.get_chat_history(link, limit=1):
- print(message.text)
- except Exception as e:
- print(e)
- pass
- await app.stop()
- except Exception as e:
- print(e)
- await app.stop()
- input(f"\n{ye}Chiqish uchun Enterni bosing!")
- if __name__ == "__main__":
- asyncio.run(main())
- sorovnoma_2()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement