Skip to content

Commit a2bf1b8

Browse files
github-actions[bot]github-actions
and
github-actions
authored
Codes are generated by openapi generator (#664)
line/line-openapi#65 In the Messaging API, we've added the following values as conditions for filtering the age range of recipients in the [demographic filter objects](https://developers.line.biz/en/reference/messaging-api/#narrowcast-demographic-filter) of [narrowcast messages](https://developers.line.biz/en/reference/messaging-api/#send-narrowcast-message): - `age_55` - `age_60` - `age_65` - `age_70` Until now, the upper limit was `age_50`, so it wasn't possible to filter ages over 50 in detail. By specifying the added age ranges, you can now filter recipients more flexibly than before. For example, the following is a demographic filter object that filters by age 50 and older but less than 60: ```json { "type": "age", "gte": "age_50", "lt": "age_60" } ``` news: https://developers.line.biz/en/news/2024/08/26/age-filter-subdivision/ Co-authored-by: github-actions <[email protected]>
1 parent 222ea09 commit a2bf1b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

linebot/v3/messaging/models/age_demographic.py

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ class AgeDemographic(str, Enum):
3737
AGE_40 = 'age_40'
3838
AGE_45 = 'age_45'
3939
AGE_50 = 'age_50'
40+
AGE_55 = 'age_55'
41+
AGE_60 = 'age_60'
42+
AGE_65 = 'age_65'
43+
AGE_70 = 'age_70'
4044

4145
@classmethod
4246
def from_json(cls, json_str: str) -> AgeDemographic:

0 commit comments

Comments
 (0)