check permission fixes

This commit is contained in:
3err0 2019-06-23 14:02:22 +08:00
parent 2f9337161d
commit 9390d56404

View File

@ -16,11 +16,9 @@ bot = telebot.TeleBot(config.bot_token)
#telebot.logger.setLevel(logging.DEBUG)
def check_permission(uid):
user = str(uid)
for userid in config.users:
if userid == user:
return True
if uid not in config.users:
return False
return True
def file_ext(filename):
return filename.split(".")[-1]