Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class check():
- def checkUser(self, telegram_id):
- if telegram_id == 235987:
- return {'user': True, 'typ': 2}
- else:
- return {'user': False}
- class function_Bot():
- def addUsers(self, keys, my_telegram_id):
- global key
- if 'key' in globals():
- if key == keys:
- print("Ключ совпадает")
- else:
- print("ключ не совпадает")
- else:
- checkUser = check().checkUser(my_telegram_id) #вызов функции checkUser из класса check
- if (checkUser['user'] == True) and checkUser['typ'] == 2:
- key = 20 #инициализация значения
- print("Создал ")
- else:
- print("нет прав")
Add Comment
Please, Sign In to add comment