github line/line-bot-sdk-python v3.20.0
v3.20.0 Add forbidPartialDelivery option to the Narrowcast Limit Object

one day ago

What's Changed

  • Add forbidPartialDelivery option to the Narrowcast Limit Object by @github-actions[bot] in #873

Add forbidPartialDelivery option to the Narrowcast Limit Object

We add a new forbidPartialDelivery option to the Narrowcast Limit Object.

When set to true, this option prevents messages from being delivered to only a subset of the target audience.
If partial delivery occurs, the narrowcast request will succeed but fail asynchronously.
You can verify whether the message delivery was canceled by checking the narrowcast message progress.

This property can only be set to true when upToRemainingQuota is also true.

For more details, see the https://developers.line.biz/en/news/2025/10/21/narrowcast-message-update/.

Example:
line_bot_api.narrowcast(
    NarrowcastRequest(
        messages=[TextMessage(text=event.message.text)],
        limit=Limit(
            max=1000,
            upToRemainingQuota=True,
            forbidPartialDelivery=True
        )
    )
)

(original PR is line/line-openapi#114)

Use cases

Previously, when upToRemainingQuota was set to true, messages could be partially delivered if the remaining message quota was smaller than the target audience size.
With the new forbidPartialDelivery option, you can now ensure that such partial deliveries do not occur.

  • Ensuring that a campaign message is sent only if it can reach the full target audience, avoiding incomplete distributions.

line-openapi updates

Full Changelog: v3.19.2...v3.20.0


This release is prepared by @habara-k

Don't miss a new line-bot-sdk-python release

NewReleases is sending notifications on new releases.