Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ev.text:
- try:
- picture = True
- for dict_ in session.users_get([ev.text]):
- for key, value in dict_.items():
- if key == 'first_name' and value == "DELETED":
- attach += ['photo-187745006_457239038']
- break
- if key == 'is_closed' and value:
- attach += ['photo-187745006_457239035']
- picture = False
- elif key == 'is_closed' and not value:
- picture = True
- if key == 'photo_id' and picture == True:
- attach += [f"photo{value}"]
- break
- elif key == 'photo_id':
- break
- msg += (
- f"{key} = {value}\n"
- )
- except:
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement