Esempio n. 1
0
async def revoke_pm_block(_client, message):
    if message.chat.type == 'private':
        del_whitelist(message.chat.id)
    else:
        if message.reply_to_message:
            del_whitelist(message.reply_to_message.from_user.id)
        else:
            message.delete()
            return
    await message.edit("**PM permission was revoked!**")
    await asyncio.sleep(3)
    await message.delete()
Esempio n. 2
0
async def revoke_pm_block(_client, message):
    del_whitelist(message.chat.id)
    await message.edit("`PM permission was revoked!`")
Esempio n. 3
0
async def revoke_pm_block(_client, message):
    del_whitelist(message.chat.id)
    await message.edit("**Sorry, but the owner revoked your permission from contacting them via PMs.**")