Vivod.py 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import sqlite3
  2. import time
  3. from telethon import TelegramClient
  4. from telethon import sync, events
  5. import re
  6. import json
  7. db = sqlite3.connect('Account.db')
  8. cur = db.cursor()
  9. x = 1
  10. while(True):
  11. if x == 32:
  12. print("Все что можно выведено на кошельки")
  13. print(m)
  14. break
  15. cur.execute(f"SELECT PHONE FROM Account WHERE ID = '{x}'")
  16. time.sleep(0.4)
  17. Phone = str(cur.fetchone()[0])
  18. print("Входим в аккаунт: " + Phone)
  19. cur.execute(f"SELECT API_ID FROM Account WHERE ID = '{x}'")
  20. time.sleep(0.4)
  21. api_id = str(cur.fetchone()[0])
  22. cur.execute(f"SELECT API_HASH FROM Account WHERE ID = '{x}'")
  23. time.sleep(0.4)
  24. api_hash = str(cur.fetchone()[0])
  25. session = str("anon" + str(x))
  26. client = TelegramClient(session, api_id, api_hash)
  27. client.start()
  28. dlgs = client.get_dialogs()
  29. for dlg in dlgs:
  30. if dlg.title == 'LTC Click Bot':
  31. tegmo = dlg
  32. client.send_message('LTC Click Bot', "/balance")
  33. time.sleep(3)
  34. msgs = client.get_messages(tegmo, limit=1)
  35. for mes in msgs:
  36. str_a = str(mes.message)
  37. zz = str_a.replace('Available balance: ', '')
  38. qq = zz.replace(' LTC', '')
  39. print(qq)
  40. waitin = float(qq)
  41. if waitin >= 0.0004:
  42. client.send_message('LTC Click Bot', "💵 Withdraw")
  43. time.sleep(3)
  44. cur.execute(f"SELECT LITECOIN FROM Account WHERE ID = '{x}'")
  45. time.sleep(0.4)
  46. litecoin = str(cur.fetchone()[0])
  47. client.send_message('LTC Click Bot', litecoin)
  48. Adolf = round(waitin, 5)
  49. Eva = float(Adolf) - 0.00001
  50. vivod = float(Eva)
  51. print("Выводим: " + str(vivod))
  52. time.sleep(3)
  53. client.send_message('LTC Click Bot', str(vivod))
  54. time.sleep(3)
  55. client.send_message('LTC Click Bot', "✅ Confirm")
  56. time.sleep(3)
  57. client.send_message('LTC Click Bot', "🏠 Menu")
  58. time.sleep(3)
  59. x = x + 1
  60. time.sleep(1)