Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorgibb authored Jan 6, 2023
1 parent b64d7ea commit b02e925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ Here an example on how you can use webhook to respond to incoming messages;
print(f"{mobile} sent audio {audio_filename}")
logging.info(f"{mobile} sent audio {audio_filename}")

elif message_type == "file":
file = messenger.get_file(data)
elif message_type == "document":
file = messenger.get_document(data)
file_id, mime_type = file["id"], file["mime_type"]
file_url = messenger.query_media_url(file_id)
file_filename = messenger.download_media(file_url, mime_type)
Expand Down

0 comments on commit b02e925

Please sign in to comment.