You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add new errorCode 4 of NarrowcastProgressResponse (#733)
A new errorCode has been added to NarrowcastProgressResponse.
New number is 4. 4 means an audience of less than 50 recipients is
included as a condition of sending.
Previously, it was not possible to determine whether an error occurred
due to a lack of enough recipients or because an audience of less than
50 recipients is included as a condition of sending. This will be fixed
with the update to the Messaging API, so the description of errorCode on
OpenAPI will also be revised.
Co-authored-by: github-actions <[email protected]>
Co-authored-by: Yuta Euchi <[email protected]>
Copy file name to clipboardExpand all lines: linebot/v3/messaging/models/narrowcast_progress_response.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ class NarrowcastProgressResponse(BaseModel):
31
31
failure_count: Optional[StrictInt] =Field(None, alias="failureCount", description="The number of users who failed to send the message.")
32
32
target_count: Optional[StrictInt] =Field(None, alias="targetCount", description="The number of intended recipients of the message.")
33
33
failed_description: Optional[StrictStr] =Field(None, alias="failedDescription", description="The reason the message failed to be sent. This is only included with a `phase` property value of `failed`.")
34
-
error_code: Optional[StrictInt] =Field(None, alias="errorCode", description="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't enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. ")
34
+
error_code: Optional[StrictInt] =Field(None, alias="errorCode", description="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'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. ")
35
35
accepted_time: datetime=Field(..., alias="acceptedTime", description="Narrowcast message request accepted time in milliseconds. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC ")
36
36
completed_time: Optional[datetime] =Field(None, alias="completedTime", description="Processing of narrowcast message request completion time in milliseconds. Returned when the phase property is succeeded or failed. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC ")
0 commit comments