Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed self.instance to self in send_location #42

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions whatsapp/ext/_send_media.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ def send_location(self, lat: str, long: str, name: str, address: str, recipient_
>>> whatsapp.send_location("-23.564", "-46.654", "My Location", "Rua dois, 123", "5511999999999")
"""
try:
sender = dict(self.instance.l)[sender]
sender = dict(self.l)[sender]



except:
sender = self.instance.phone_number_id
sender = self.phone_number_id

if sender == None:
sender = self.instance.phone_number_id
sender = self.phone_number_id

url = f"https://graph.facebook.com/v18.0/{sender}/messages"
data = {
Expand Down
Loading