Skip to content

Tags: line/line-bot-sdk-python

Tags

v3.21.0

Toggle v3.21.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Support mark as read by token API (#880)

line/line-openapi#115

## Support for "Mark as Read" by Token API

We have released a new **Mark as Read API** that allows developers to
mark a user’s messages as read.
Previously, this functionality was available only to partners, but it is
now publicly available.

When your server receives a user message via Webhook, the `MessageEvent`
will include a new field: `markAsReadToken`.
By calling the Mark as Read API with this token, all messages in the
chat room **up to and including** that message will be marked as read.

> **Note:** This feature assumes that your service uses the chat feature
through Official Account Manager.
> If chat is not enabled, messages from users are automatically marked
as read, making this API unnecessary.

For more details, please refer to the release note:
https://developers.line.biz/en/news/2025/11/05/mark-as-read/

Co-authored-by: github-actions <github-actions@github.com>

v3.20.0

Toggle v3.20.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add forbidPartialDelivery option to the Narrowcast Limit Object (#873)

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 <github-actions@github.com>

v3.19.2

Toggle v3.19.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
chore(deps): update dependency tox to v4.31.0 (#868)

This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [tox](https://redirect.github.com/tox-dev/tox)
([changelog](https://tox.wiki/en/latest/changelog.html)) | `==4.30.3` ->
`==4.31.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/tox/4.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/tox/4.30.3/4.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>tox-dev/tox (tox)</summary>

###
[`v4.31.0`](https://redirect.github.com/tox-dev/tox/releases/tag/4.31.0)

[Compare
Source](https://redirect.github.com/tox-dev/tox/compare/4.30.3...4.31.0)

<!-- Release notes generated using configuration in .github/release.yml
at 4.31.0 -->

#### What's Changed

- Address a type-conversion noted during doc builds by
[@&#8203;kurtmckee](https://redirect.github.com/kurtmckee) in
[#&#8203;3623](https://redirect.github.com/tox-dev/tox/pull/3623)
- Add 3.14, drop 3.9 and support | union style by
[@&#8203;gaborbernat](https://redirect.github.com/gaborbernat) in
[#&#8203;3624](https://redirect.github.com/tox-dev/tox/pull/3624)

**Full Changelog**:
<tox-dev/tox@4.30.3...4.31.0>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/line/line-bot-sdk-python).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNDMuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE0My4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImRlcGVuZGVuY3kgdXBncmFkZSJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Motoi Okuzono <motoi.okuzono+github@gmail.com>

v3.19.1

Toggle v3.19.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add option to skip signature verification (#821)

## Changes

- Allow skipping signature verification for webhooks

## Motivation

The signature returned with webhooks is calculated using a single
channel secret. If the bot owner changes their channel secret, the
signature for webhooks starts being calculated using the new channel
secret. To avoid signature verification failures, the bot owner must
update the channel secret on their server, which is used for signature
verification. However, if there is a timing mismatch in the update—and
such a mismatch is almost unavoidable—verification will fail during that
period.

In such cases, having an option to skip signature verification for
webhooks would be a convenient way to avoid these issues.

## Related PRs

- line-bot-sdk-java: line/line-bot-sdk-java#1635
- line-bot-sdk-go: line/line-bot-sdk-go#595

v3.19.0

Toggle v3.19.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add new AudienceGroupType POP_AD_IMP to Audience Group API (#842)

line/line-openapi#113

# Add `POP_AD_IMP` to **AudienceGroupType** Enum

We have supported for the new audience‑group type **`POP_AD_IMP`**
(POP ad impression audience) to the OpenAPI schema.

## Changes Made

* **Updated `AudienceGroupType` enumeration**

  * **New value**: `POP_AD_IMP`
* **Description**: Audience groups generated from impressions of *LINE
Beacon Network* (POP) ads.
  * **Region**: **Taiwan‑only** at launch

## Purpose

This update enables correct identification and handling of audience
groups built from POP ad impressions, a feature that will be released
for the Taiwan market.

## Documents and Reference

- [Managing
Audience](https://developers.line.biz/en/reference/messaging-api/#manage-audience-group)

For more information, please refer to the links provided above.

Co-authored-by: github-actions <github-actions@github.com>

v3.18.1

Toggle v3.18.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bye line things (#840)

line/line-openapi#112

It has been already gone.
Therefore this change cleans up definition of `ThingsEvent` as one of
webhook event.

Co-authored-by: github-actions <github-actions@github.com>

v3.18.0

Toggle v3.18.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
chore(deps): update actions/download-artifact action to v5 (#834)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[actions/download-artifact](https://redirect.github.com/actions/download-artifact)
| action | major | `v4.3.0` -> `v5.0.0` |

---

### Release Notes

<details>
<summary>actions/download-artifact (actions/download-artifact)</summary>

###
[`v5.0.0`](https://redirect.github.com/actions/download-artifact/releases/tag/v5.0.0)

[Compare
Source](https://redirect.github.com/actions/download-artifact/compare/v4.3.0...v5.0.0)

#### What's Changed

- Update README.md by
[@&#8203;nebuk89](https://redirect.github.com/nebuk89) in
[https://github.com/actions/download-artifact/pull/407](https://redirect.github.com/actions/download-artifact/pull/407)
- BREAKING fix: inconsistent path behavior for single artifact downloads
by ID by [@&#8203;GrantBirki](https://redirect.github.com/GrantBirki) in
[https://github.com/actions/download-artifact/pull/416](https://redirect.github.com/actions/download-artifact/pull/416)

#### v5.0.0

##### 🚨 Breaking Change

This release fixes an inconsistency in path behavior for single artifact
downloads by ID. **If you're downloading single artifacts by ID, the
output path may change.**

##### What Changed

Previously, **single artifact downloads** behaved differently depending
on how you specified the artifact:

- **By name**: `name: my-artifact` → extracted to `path/` (direct)
- **By ID**: `artifact-ids: 12345` → extracted to `path/my-artifact/`
(nested)

Now both methods are consistent:

- **By name**: `name: my-artifact` → extracted to `path/` (unchanged)
- **By ID**: `artifact-ids: 12345` → extracted to `path/` (fixed - now
direct)

##### Migration Guide

##### ✅ No Action Needed If:

- You download artifacts by **name**
- You download **multiple** artifacts by ID
- You already use `merge-multiple: true` as a workaround

##### ⚠️ Action Required If:

You download **single artifacts by ID** and your workflows expect the
nested directory structure.

**Before v5 (nested structure):**

```yaml
- uses: actions/download-artifact@v4
  with:
    artifact-ids: 12345
    path: dist

### Files were in: dist/my-artifact/
```

> Where `my-artifact` is the name of the artifact you previously
uploaded

**To maintain old behavior (if needed):**

```yaml
- uses: actions/download-artifact@v5
  with:
    artifact-ids: 12345
    path: dist/my-artifact  # Explicitly specify the nested path
```

#### New Contributors

- [@&#8203;nebuk89](https://redirect.github.com/nebuk89) made their
first contribution in
[https://github.com/actions/download-artifact/pull/407](https://redirect.github.com/actions/download-artifact/pull/407)

**Full Changelog**:
actions/download-artifact@v4...v5.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/line/line-bot-sdk-python).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS41MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuNTEuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJkZXBlbmRlbmN5IHVwZ3JhZGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

v3.17.1

Toggle v3.17.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix type of expireTimestamp (#802)

line/line-openapi#106

Type for `CreateAudienceGroupResponse#expireTimestamp` is not float or
double, but integer actually. This change fixes type.

Co-authored-by: github-actions <github-actions@github.com>

v3.17.0

Toggle v3.17.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add includesOwnedAudienceGroups Parameter to Audience API (#800)

line/line-openapi#105

# Enhancement to Shared Audiences API

This PR introduces a new query parameter `includesOwnedAudienceGroups`
to the `/v2/bot/audienceGroup/shared/list` endpoint in the Business
Manager API. This enhancement allows users to specify whether to include
audience groups owned by the user in the response.

## Changes Made
- Added the `includesOwnedAudienceGroups` parameter to the API endpoint.
  - **Type**: Boolean
  - **Default**: false
  - **Description**: 
- `true`: Include audience groups owned by the LINE Official Account
Manager.
- `false`: Respond only with audience groups shared by Business Manager.
- Removed the `/v2/bot/audienceGroup/{audienceGroupId}/activate` and
`/v2/bot/audienceGroup/authorityLevel` endpoints.

## Purpose
This update provides more flexibility in retrieving audience groups by
allowing users to filter based on ownership. It is especially useful for
users who manage both shared and owned audience groups. The removal of
certain endpoints is part of a cleanup effort to streamline the API.

Please review the changes and let me know if there are any questions or
further modifications needed.

## Documents and Reference
- [Get List of Shared
Audiences](https://developers.line.biz/en/reference/messaging-api/#get-shared-audience-list)
- [Removed
Endpoints](https://developers.line.biz/en/news/2025/03/26/cross-targeting-closing/)

For more information, please refer to the links provided above.

Co-authored-by: github-actions <github-actions@github.com>

v3.16.3

Toggle v3.16.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Migrate renovate config (#782)

Renovate's auto migrator removes comments and disrupts the format as it
said.
This change keeps the original file as much as possible.

Close #777

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>