Skip to content

Commit

Permalink
handle text None case
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Feb 12, 2025
1 parent c4bcb73 commit 0d7c8f3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions daras_ai_v2/facebook_bots.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,14 @@ def send_msg_to(
for link in documents
] + messages

messages += [
{
"type": "image",
"image": {"link": wa_img_convert(img_url)},
}
for img_url in images
]
if images:
messages += [
{
"type": "image",
"image": {"link": wa_img_convert(img_url)},
}
for img_url in images
]

return send_wa_msgs_raw(
bot_number=bot_number,
Expand Down

0 comments on commit 0d7c8f3

Please sign in to comment.