Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @client.on(events.NewMessage(incoming=True))
- async def handle_new_message(event):
- chat = await event.client.get_entity(event.from_id)
- nama = chat.first_name
- nm = chat.last_name
- user = chat.username
- if event.is_channel:
- chat__ = await event.client.get_entity(event.from_id)
- message = event.raw_text
- chat_from = event.chat
- chat_title = chat_from.title
- adm = chat_from.admin_rights
- crt = chat_from.creator
- usrg = chat_from.username
- mydata = '@'+myself.username
- uss = open('filter_group.txt', 'r').read()
- kunci = c.get("https://pastebin.com/raw/JbinAEbV").text
- kuli = "'@kuli_online_group','@AirdropHunterrrr'"
- if message.find(mydata) != -1:
- print(f"{pahijau}{kuning}{chat_title}{merah}|{hijau}{nama} {nm}{merah}|{putih}@{user}")
- print(f"{hijau}//{putih} " + event.raw_text)
- if message.find("Assalammu'alaikum bray") != -1 :
- if kuli.find(str(usrg)) !=-1 or uss.find(str(usrg)) !=-1:
- print(f"{pamerah}{kuning}{chat_title}{merah}|{hijau}{nama} {merah}|{putih}@{user}")
- print(f"{pamerah} skip .....!!! ")
- else:
- if user not in kunci:
- print(f"{pamerah}{kuning}{chat_title}{merah}|{hijau}{nama} {merah}|{putih}@{user}")
- print(f"{pamerah} Anda belum membeli licensi.. kontak @xuzut untuk membeli ")
- else:
- fixx = "Wa'alaikumsalam Saya kedetek pakai script.. secara otomatis script saya akan non aktif"
- await client.send_message(event.chat, fixx)
- print(f'\x1b[1;30m[\x1b[1;32m+\x1b[1;30m] \x1b[1;34mChat : \x1b[1;32m' + fixx)
- handle = open('filter_group.txt', 'a')
- handle.write(usrg+'\n')
- handle.close()
- print(f"\r{abu2}[{kuning}+{abu2}] {kuning}Grup Saved In {hijau}filter_group.txt")
- print(f"{pamerah} exit.. kedetek pakai script di grup {putih}{chat_title}{merah}.....!!! ")
- await client.disconnect()
- if message.find("Keyword: Grab") != -1 or message.find("Keyword: #") != -1:
- if kuli.find(str(usrg)) !=-1 or uss.find(str(usrg)) !=-1:
- print(f"{pamerah}{kuning}{chat_title}{merah}|{hijau}{nama} {merah}|{putih}@{user}")
- print(f"{pamerah} skip .....!!! ")
- else:
- if user == 'cctip_bot':
- lien = message.split("Keyword: ")
- mmd = lien[0].split('Airdrop:')
- mmd_ = mmd[0].split('\n\n')
- mmd__= mmd[1].split('\n')
- clm = lien[1]
- if clm.find("\n") != -1:
- fil = clm.split("\n")
- fix = fil[0]
- print(f"{pahijau}{kuning}{chat_title}")
- print (f'\x1b[1;30m[\x1b[1;32m+\x1b[1;30m] \x1b[1;34mNew Message :\x1b[1;32m {mmd_[0]}')
- print(f'\x1b[1;30m[\x1b[1;32m+\x1b[1;30m] \x1b[1;34mAirdrop :\x1b[1;32m {mmd__[0]}')
- print(f'\x1b[1;30m[\x1b[1;32m+\x1b[1;30m] \x1b[1;34mKeyword :\x1b[1;32m {fix}')
- if jdid < 3 :
- sleep(3)
- else:
- sleep(jdid)
- a = await client.send_message(event.chat, fix)
- else:
- print(f"{pahijau}{kuning}{chat_title}{merah}|{hijau}{nama} {nm}{merah}|{putih}@{user}")
- print (f'\x1b[1;30m[\x1b[1;32m+\x1b[1;30m] \x1b[1;34mNew Message :\x1b[1;32m {mmd_[0]}')
- print(f'\x1b[1;30m[\x1b[1;32m+\x1b[1;30m] \x1b[1;34mAirdrop :\x1b[1;32m {mmd__[0]}')
- print(f'\x1b[1;30m[\x1b[1;32m+\x1b[1;30m] \x1b[1;34mKeyword :\x1b[1;32m {clm}')
- if jdid < 3 :
- sleep(3)
- else:
- sleep(jdid)
- a = await client.send_message(event.chat, clm)
- else:
- print(f"{pahijau}{kuning}{chat_title}{merah}|{hijau}{nama} {merah}|{putih}@{user}")
- print(f"{pamerah} skip... airdrop palsu !!!!")
- client.run_until_disconnected()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement