Skip to content

Instantly share code, notes, and snippets.

@amiryousefi
Created August 14, 2019 07:20
Show Gist options
  • Save amiryousefi/061bbfde4426055b5e467d8dbfba36a8 to your computer and use it in GitHub Desktop.
Save amiryousefi/061bbfde4426055b5e467d8dbfba36a8 to your computer and use it in GitHub Desktop.
all_user_details = []
for participant in all_participants:
all_user_details.append(
{"id": participant.id, "first_name": participant.first_name, "last_name": participant.last_name,
"user": participant.username, "phone": participant.phone, "is_bot": participant.bot})
with open('user_data.json', 'w') as outfile:
json.dump(all_user_details, outfile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment