Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. from telethon import functions, types
  2.  
  3. @register(outgoing=True, pattern="^[.]kickme$")
  4. async def kickMe(e):
  5.   if not e.is_private:
  6.     await e.edit("Ti sei autokickato con successo✔️")
  7.     await e.client(functions.channels.LeaveChannelRequest(e.chat_id))
  8.   else:
  9.     await e.edit("Non è un canale o un gruppo❌")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement