Skip to content

Commit

Permalink
Codes are generated by openapi generator (#664)
Browse files Browse the repository at this point in the history
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 <github-actions@github.com>
  • Loading branch information
github-actions[bot] and github-actions authored Aug 26, 2024
1 parent 222ea09 commit a2bf1b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions linebot/v3/messaging/models/age_demographic.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class AgeDemographic(str, Enum):
AGE_40 = 'age_40'
AGE_45 = 'age_45'
AGE_50 = 'age_50'
AGE_55 = 'age_55'
AGE_60 = 'age_60'
AGE_65 = 'age_65'
AGE_70 = 'age_70'

@classmethod
def from_json(cls, json_str: str) -> AgeDemographic:
Expand Down

0 comments on commit a2bf1b8

Please sign in to comment.