+4
-4
bsky_utils.py
+4
-4
bsky_utils.py
···
466
466
467
467
def reply_with_thread_to_notification(client: Client, notification: Any, reply_messages: List[str], lang: str = "en-US") -> Optional[List[Dict[str, Any]]]:
468
468
"""
469
-
Reply to a notification with a threaded chain of messages (max 4).
469
+
Reply to a notification with a threaded chain of messages (max 15).
470
470
471
471
Args:
472
472
client: Authenticated Bluesky client
473
473
notification: The notification object from list_notifications
474
-
reply_messages: List of reply texts (max 4 messages, each max 300 chars)
474
+
reply_messages: List of reply texts (max 15 messages, each max 300 chars)
475
475
lang: Language code for the posts (defaults to "en-US")
476
476
477
477
Returns:
···
482
482
if not reply_messages or len(reply_messages) == 0:
483
483
logger.error("Reply messages list cannot be empty")
484
484
return None
485
-
if len(reply_messages) > 4:
486
-
logger.error(f"Cannot send more than 4 reply messages (got {len(reply_messages)})")
485
+
if len(reply_messages) > 15:
486
+
logger.error(f"Cannot send more than 15 reply messages (got {len(reply_messages)})")
487
487
return None
488
488
489
489
# Get the post URI and CID from the notification (handle both dict and object)