Skip to content

Commit

Permalink
πŸ› fix attachments_url in Messenger.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jorge-jrzz committed Jun 25, 2024
1 parent 536308c commit 1a26433
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pynani/Messenger.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,7 @@ def upload_attachment(self, attachment_type: str, attachment_path: str) -> str:
"1234567897654321"
"""

attachments_url = f"https://graph.facebook.com/v20.0/{
self.page_id}/message_attachments"
attachments_url = f"https://graph.facebook.com/v20.0/{self.page_id}/message_attachments"
attachment = Path(attachment_path)
mimetype, _ = mimetypes.guess_type(attachment)

Expand Down

0 comments on commit 1a26433

Please sign in to comment.