Skip to content

Commit 332bf43

Browse files
github-actions[bot]github-actions
andauthored
Add forbidPartialDelivery option to the Narrowcast Limit Object (#634)
line/line-openapi#114 ## 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: ```json { "max": 100, "upToRemainingQuota": true, "forbidPartialDelivery": true } ``` Co-authored-by: github-actions <[email protected]>
1 parent 25f573d commit 332bf43

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

line-openapi

linebot/messaging_api/model_limit.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,9 @@ type Limit struct {
3434
* If true, the message will be sent within the maximum number of deliverable messages. The default value is `false`. Targets will be selected at random.
3535
*/
3636
UpToRemainingQuota bool `json:"upToRemainingQuota"`
37+
38+
/**
39+
* This option prevents messages from being delivered to only a subset of the target audience. If true, the narrowcast request success but fails asynchronously. You can check whether message delivery was canceled by retrieving the narrowcast message progress. This property can be set to true only if upToRemainingQuota is set to true.
40+
*/
41+
ForbidPartialDelivery bool `json:"forbidPartialDelivery"`
3742
}

linebot/messaging_api/model_narrowcast_progress_response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type NarrowcastProgressResponse struct {
5454
FailedDescription string `json:"failedDescription,omitempty"`
5555

5656
/**
57-
* Error summary. This is only included with a phase property value of failed. One of: `1`: An internal error occurred. `2`: An error occurred because there weren&#39;t enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. `4`: An audience of less than 50 recipients is included as a condition of sending.
57+
* Error summary. This is only included with a phase property value of failed. One of: `1`: An internal error occurred. `2`: An error occurred because there weren&#39;t enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. `4`: An audience of less than 50 recipients is included as a condition of sending. `5`: Message delivery has been canceled to prevent messages from being delivered only to a subset of the target audience.
5858
*/
5959
ErrorCode int64 `json:"errorCode"`
6060

0 commit comments

Comments
 (0)