check for verified users
This commit is contained in:
@@ -78,7 +78,7 @@ if sett == "True" and sett != "False":
|
||||
@ultroid_bot.on(events.NewMessage(outgoing=True, func=lambda e: e.is_private))
|
||||
async def autoappr(e):
|
||||
miss = await e.get_chat()
|
||||
if miss.bot or miss.is_self:
|
||||
if miss.bot or miss.is_self or miss.verified:
|
||||
return
|
||||
mssg = e.text
|
||||
if mssg in PMCMDS: # do not approve if outgoing is a command.
|
||||
@@ -100,7 +100,7 @@ if sett == "True" and sett != "False":
|
||||
@ultroid_bot.on(events.NewMessage(incoming=True, func=lambda e: e.is_private))
|
||||
async def permitpm(event):
|
||||
user = await event.get_chat()
|
||||
if user.bot or user.is_self:
|
||||
if user.bot or user.is_self or user.verified:
|
||||
return
|
||||
apprv = is_approved(user.id)
|
||||
if not apprv and event.text != UND:
|
||||
|
||||
Reference in New Issue
Block a user