Untitled

mail@pastecode.io avatar
unknown
python
7 months ago
1.3 kB
4
Indexable
Never
import aminofix
import webbrowser 
client=aminofix.Client()
email=""
password=""
comlink=""
#client.login(email, password )
try:
     response = client.login(email, password )
except Exception as e:
        if 'url' in str(e):
            url_index = str(e).find('url')
            url = str(e)[url_index + 6:].split(',')[0].strip("'}")
            webbrowser.open(url)
            hh=input("wait:.")
            
            deviceid_start = url.find('deviceid=') + len('deviceid=')
            deviceid_end = url.find('&', deviceid_start)
            deviceid = url[deviceid_start:deviceid_end]
            
            client = Client(deviceId=deviceid)
            client.login(email, password )
id=client.get_from_code(comlink)
sub=aminofix.SubClient(comId=id.comId, profile=client.profile)

f=sub.get_all_users(start=1,size=100).profile
f2= sub.get_all_users(start=100, size=200).profile

for icon, userId in zip(f.icon, f.userId):
    if icon is None:
        try:
            sub.ban(userId=userId,reason="bot hai bot")
        except Exception as a:
            print(a)
        

for icon, userId in zip(f2.icon, f2.userId):
    if icon is None:
        try:
            sub.ban(userId=userId,reason="bot hai bot")
        except Exception as a:
            print(a)
        
Leave a Comment