Skip to content

Commit

Permalink
[client] fix reply_to_message
Browse files Browse the repository at this point in the history
  • Loading branch information
yehuda-lev committed Nov 7, 2024
1 parent 48a66ef commit 1ca21af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pywa/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ def send_image(
msg=helpers.get_media_msg(
media_id_or_url=image, is_url=is_url, caption=caption
),
reply_to_message_id=reply_to_message_id,
biz_opaque_callback_data=helpers.resolve_tracker_param(tracker),
),
from_phone_id=sender,
Expand Down Expand Up @@ -683,6 +684,7 @@ def send_video(
msg=helpers.get_media_msg(
media_id_or_url=video, is_url=is_url, caption=caption
),
reply_to_message_id=reply_to_message_id,
biz_opaque_callback_data=helpers.resolve_tracker_param(tracker),
),
from_phone_id=sender,
Expand Down Expand Up @@ -787,6 +789,7 @@ def send_document(
caption=caption,
filename=filename,
),
reply_to_message_id=reply_to_message_id,
biz_opaque_callback_data=helpers.resolve_tracker_param(tracker),
),
from_phone_id=sender,
Expand Down
3 changes: 3 additions & 0 deletions pywa_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ async def send_image(
msg=helpers.get_media_msg(
media_id_or_url=image, is_url=is_url, caption=caption
),
reply_to_message_id=reply_to_message_id,
biz_opaque_callback_data=helpers.resolve_tracker_param(tracker),
),
from_phone_id=sender,
Expand Down Expand Up @@ -438,6 +439,7 @@ async def send_video(
msg=helpers.get_media_msg(
media_id_or_url=video, is_url=is_url, caption=caption
),
reply_to_message_id=reply_to_message_id,
biz_opaque_callback_data=helpers.resolve_tracker_param(tracker),
),
from_phone_id=sender,
Expand Down Expand Up @@ -542,6 +544,7 @@ async def send_document(
caption=caption,
filename=filename,
),
reply_to_message_id=reply_to_message_id,
biz_opaque_callback_data=helpers.resolve_tracker_param(tracker),
),
from_phone_id=sender,
Expand Down

0 comments on commit 1ca21af

Please sign in to comment.