Untitled

 avatar
unknown
plain_text
2 years ago
572 B
10
Indexable
class Filter_aiimg(UpdateFilter):
    def filter(self, update: Update):
        return 'gbr' in update.message.text.split()
    
SPECIAL_USERS = [any user that is allowed]
    
class Filter_user(UpdateFilter):
    async def filter(self, update: Update):
        if '@'+update.effective_user.username in SPECIAL_USERS:
            pass
        else:
            await update.effective_message.reply_text('''
You're not allowed to access this bot \U0000274c\U0000274c\U0000274c.
please contact @Robbyfuad first!!.
''')
            raise ApplicationHandlerStop
Editor is loading...