Skip to content

Commit

Permalink
fix: message to reply to was being inlcuded even when is None
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioVentilii committed Apr 9, 2024
1 parent c4ce797 commit cdfc958
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='whatsapp_wrapper',
version='0.1.4',
version='0.1.5',
author='Antonio Ventilii',
author_email='[email protected]',
license='MIT',
Expand Down
5 changes: 3 additions & 2 deletions whatsapp_wrapper/message_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ def base_data(self):
'to': str(self.to),
'messaging_product': self.messaging_product,
'recipient_type': self.recipient_type,
'context': {
}
if self.reply_to_message_id:
data['context'] = {
'message_id': self.reply_to_message_id
}
}
return data

def text(self, text: str, preview_url: bool = True) -> dict:
Expand Down

0 comments on commit cdfc958

Please sign in to comment.