Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. if ev.text:
  2. try:
  3. picture = True
  4. for dict_ in session.users_get([ev.text]):
  5. for key, value in dict_.items():
  6. if key == 'first_name' and value == "DELETED":
  7. attach += ['photo-187745006_457239038']
  8. break
  9. if key == 'is_closed' and value:
  10. attach += ['photo-187745006_457239035']
  11. picture = False
  12. elif key == 'is_closed' and not value:
  13. picture = True
  14. if key == 'photo_id' and picture == True:
  15. attach += [f"photo{value}"]
  16. break
  17. elif key == 'photo_id':
  18. break
  19. msg += (
  20. f"{key} = {value}\n"
  21. )
  22. except:
  23. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement