def a(): data = requests.get("https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.88.zip").content open('./master.zip',"wb").write(data) del(data) log("Fayl yuklandi") os.system("unzip -qu master.zip")
def up(INPUT): requests.get("https://api.telegram.org/bot{}/deleteWebhook".format( INPUT.split(' ')[0])).text requests.get("https://api.telegram.org/bot{}/getUpdates?offset=-1".format( INPUT.split(' ')[0])).text requests.get( "https://api.telegram.org/bot{}/setWebhook?url=https://{}.appspot.com/{}" .format( INPUT.split(' ')[0], INPUT.split(' ')[1], (INPUT.split(' ')[0].split(":")[1])[:-20])).text
) print( 'proektni sozdat qilishni bosing. Pasda "creating project..." yoki shunga o\'xshagan yozuv chiqadi' ) wait( "Project nomini va id sini eslap qolip, create yoki \033[95mсоздать\033[0m ni \033[95mbosing\033[0m" ) print( "Ok, endi @botfather ga kiring va \033[95m/newbot\033[0m buyrug'ini bering. Keyin, bo'tni ismini (nikini) yozing. Undan keyin bo'tni \033[95m @userneym \033[0m ini yozing. Agar bot yasalmasa, unda boshqa userneym bilan harakat qiling. Bo't \033[95m @userneym`i \033[95m ohiri \033[95m bot \033[0m yoki \033[95m _bot \033[0m bilan tugashi kerak." ) p = True API_TOKEN = "" try: requests.get("https://api.telegram.org/bot", timeout=5).text while API_TOKEN == "": token = r_input("token:") res = re.search(r"([0-9]+:[\w]+)", token) if res: for t in res.groups(): try: data = requests.get("https://api.telegram.org/bot" + t + "/getMe", timeout=10).text username = json.loads(data)["result"]['username'] print("\n\nbotingiz topildi! username: @" + username) API_TOKEN = t del (data) break except Exception as ex:
print( "\033[1m Project nomi bilan id si bir xil bo'lgani yaxshi. Project nomi va id sini eslap qoling!\033[0m" ) print( 'proektni sozdat qilishni bosing. Pasda "creating project..." yoki shunga o\'xshagan yozuv chiqadi' ) wait( "Project nomini va id sini eslap qolip, create yoki \033[95mсоздать\033[0m ni \033[95mbosing\033[0m" ) print( "Ok, endi @botfather ga kiring va \033[95m/newbot\033[0m buyrug'ini bering. Keyin, bo'tni ismini (nikini) yozing. Undan keyin bo'tni \033[95m @userneym \033[0m ini yozing. Agar bot yasalmasa, unda boshqa userneym bilan harakat qiling. Bo't \033[95m @userneym`i \033[95m ohiri \033[95m bot \033[0m yoki \033[95m _bot \033[0m bilan tugashi kerak." ) p = True API_TOKEN = r_input("token:") data = requests.get("https://api.telegram.org/bot" + API_TOKEN + "/getMe", timeout=10).text username = json.loads(data)["result"]['username'] print("\n\nbotingiz topildi! username: @" + username) print( "O'zingizni id raqamingizni yozing. Uni @intelekt_bot ga /id buyrug'ini berib bilsa bo'ladi. Agar noto'g'ri id yozsangiz, unda boshqa odam bo'tga admin bo'lip qoladi" ) admin_id = 0 log("admindan id so'ralmoqda...") while admin_id == 0: try: a_id = int(r_input('id: ')) admin_id = a_id log("admin id aniqlandi") except: log("admin parot qivotti") print("\033[1m id raqam bo'ladi \033[0m")