Releases: line/line-bot-sdk-go
v8.17.0 Add forbidPartialDelivery option to the Narrowcast Limit Object
What's Changed
- Add forbidPartialDelivery option to the Narrowcast Limit Object by @github-actions[bot] in #634
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:
bot.Narrowcast(
&messaging_api.NarrowcastRequest{
Messages: []messaging_api.MessageInterface{
messaging_api.TextMessage{
Text: "Hello",
}
},
Limit: &messaging_api.Limit{
Max: 1000,
UpToRemainingQuota: true,
ForbidPartialDelivery: true
}
}
)(original PR is line/line-openapi#114)
Use cases
Previously, when upToRemainingQuota was set to true, messages could be partially delivered if the remaining message quota was smaller than the target audience size.
With the new forbidPartialDelivery option, you can now ensure that such partial deliveries do not occur.
- Ensuring that a campaign message is sent only if it can reach the full target audience, avoiding incomplete distributions.
line-openapi updates
Dependency updates
- chore(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.14.1 by @renovate[bot] in #623
- fix(deps): update dependency org.openapitools:openapi-generator to v7.16.0 by @renovate[bot] in #624
- chore(deps): update dependency org.apache.maven.plugins:maven-enforcer-plugin to v3.6.2 by @renovate[bot] in #625
- chore(deps): update junit-framework monorepo to v5.14.0 by @renovate[bot] in #626
- chore(deps): update junit-framework monorepo to v6 (major) by @renovate[bot] in #627
- chore(deps): update actions/stale action to v10.1.0 by @renovate[bot] in #629
- chore(deps): update actions/setup-node action to v6 by @renovate[bot] in #632
Other Changes
- Support Go 1.25 and drop 1.23 by @eucyt in #628
- Delete unused items related to codecov by @Yang-33 in #630
- Prevent command injection when creating release notes by @Yang-33 in #631
- Fix limit object test by @habara-k in #633
Full Changelog: v8.16.0...v8.17.0
This release is prepared by @habara-k
v8.16.0 Add an Option to Skip Webhook Signature Verification
What's Changed
✨ Add an Option to Skip Webhook Signature Verification
With this release, developers can now optionally skip signature verification when parsing incoming webhook requests. This new capability is especially useful in scenarios where the channel secret may change, potentially causing temporary signature mismatches.
Example Usage:
opt := &webhook.ParseOption{
SkipSignatureValidation: func() bool { return true },
}
cb, err := webhook.ParseRequestWithOption(os.Getenv("LINE_CHANNEL_SECRET"), req, opt)When signature verification is skipped, the signatureValidator will not be invoked. This allows webhook requests to be processed even if their signatures do not match the current channel secret used for verification.
This feature is particularly helpful in high-availability systems where avoiding downtime or message loss during configuration updates is critical.
Dependency updates
- chore(deps): update actions/setup-node action to v5 by @renovate[bot] in #614
- chore(deps): update actions/setup-go action to v6 by @renovate[bot] in #613
- chore(deps): update actions/setup-python action to v6 by @renovate[bot] in #615
- chore(deps): update actions/stale action to v10 by @renovate[bot] in #616
- chore(deps): update actions/github-script action to v8 by @renovate[bot] in #618
- chore(deps): update dependency org.apache.maven.plugins:maven-shade-plugin to v3.6.1 by @renovate[bot] in #620
- chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.4 by @renovate[bot] in #621
Other Changes
- Set minimumReleaseAge to 7 days to avoid merge renovate PR quickly by @Yang-33 in #619
- Use github actor id instead of bot name to avoid renaming issues by @Yang-33 in #622
Full Changelog: v8.15.0...v8.15.1
v8.15.0 Support new AudienceGroupType POP_AD_IMP to Audience Group API
What's Changed
Support new AudienceGroupType POP_AD_IMP to Audience Group API
- Add new AudienceGroupType POP_AD_IMP to Audience Group API by @github-actions[bot] in #612
We have supported for the new audience‑group type POP_AD_IMP (POP ad impression audience) to the OpenAPI schema.
Changes Made
-
Updated
AudienceGroupTypeenumeration- New value:
POP_AD_IMP - Description: Audience groups generated from impressions of LINE Beacon Network (POP) ads.
- Region: Taiwan‑only at launch
- New value:
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
For more information, please refer to the links provided above.
(original PR is line/line-openapi#113)
Dependency updates
- fix(deps): update dependency org.openapitools:openapi-generator to v7.15.0 by @renovate[bot] in #611
Full Changelog: v8.14.2...v8.15.0
This release is prepared by @eucyt
v8.14.2 Clean up webhook code for line things
What's Changed
LINE Things has been closed. In this release we removed the following LINE Things related webhook code
ThingsEventThingsContentLinkThingsContentUnlinkThingsContentScenarioResultThingsContentScenarioResultActionResult
As noted in the README, deletions tied to a business shutdown are shipped as a patch version, not a major version. If your code still references any of these code, they will never be emitted again, so you should remove them.
Full Changelog: v8.14.1...v8.14.2
This release is prepared by @Yang-33
v8.14.1 TextMessageV2 now supports all substitution types
What's Changed
Fixed: TextMessageV2 now supports all substitution types.
Reported issue: #599
Dependency updates
- chore(deps): update actions/checkout action to v4.3.0 by @renovate[bot] in #605
- chore(deps): update actions/checkout action to v5 by @renovate[bot] in #606
Other Changes
Full Changelog: v8.14.0...v8.14.1
v8.14.0 Add Coupon API Support to Messaging API
What's Changed
This release introduces Coupon API support to the Messaging API, enabling developers to create, manage, and deliver coupons directly through bot integrations. These new features mirror capabilities previously only available through the LINE Official Account Manager, offering greater flexibility in automating coupon workflows via the Messaging API.
✨ New API Endpoints
-
POST
/v2/bot/coupon
Create a new coupon, including metadata such as title, description, validity period, image URLs, acquisition conditions, and reward details (e.g., fixed-amount discounts). -
GET
/v2/bot/coupon
Retrieve a list of all coupons associated with your bot. -
GET
/v2/bot/coupon/{couponId}
Fetch detailed metadata of a specific coupon. -
PUT
/v2/bot/coupon/{couponId}
Mark a coupon as expired.
💬 Messaging API Enhancements
- Added support for a new message type:
type=coupon
You can now send coupons directly to users using the Messaging API, similar to sending text, image, or template messages.
📌 Example Use Cases
- Create a 1000 yen off coupon
- Send the coupon to a user using the new coupon message type
For detailed usage examples, see the official documentation.
📢 Official Announcement:
LINE Developers News — Coupon API Released (2025/08/06)
line-openapi updates
- chore(deps): update line-openapi digest to 3e09054 by @renovate[bot] in #583
- chore(deps): update line-openapi digest to 92f9320 by @renovate[bot] in #588
- Add Coupon API Support to Messaging API by @github-actions[bot] in #604
Dependency updates
- fix(deps): update dependency org.openapitools:openapi-generator to v7.13.0 by @renovate[bot] in #582
- chore(deps): update actions/setup-go action to v5.5.0 by @renovate[bot] in #584
- chore(deps): update junit5 monorepo to v5.13.0 by @renovate[bot] in #589
- chore(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.6.1 by @renovate[bot] in #590
- chore(deps): update junit5 monorepo to v5.13.1 by @renovate[bot] in #591
- chore(deps): update dependency org.junit.jupiter:junit-jupiter-api to v5.13.2 by @renovate[bot] in #592
- chore(deps): update dependency org.junit.jupiter:junit-jupiter-engine to v5.13.2 by @renovate[bot] in #593
- fix(deps): update dependency org.openapitools:openapi-generator to v7.14.0 by @renovate[bot] in #594
- chore(deps): update dependency org.apache.maven.plugins:maven-enforcer-plugin to v3.6.0 by @renovate[bot] in #596
- chore(deps): update junit-framework monorepo to v5.13.3 by @renovate[bot] in #597
- chore(deps): update dependency org.apache.maven.plugins:maven-enforcer-plugin to v3.6.1 by @renovate[bot] in #601
- chore(deps): update junit-framework monorepo to v5.13.4 by @renovate[bot] in #603
Other Changes
- Use stable and oldstable instead actual version for actions/setup-go by @Yang-33 in #585
- Improve issue triage and issue template by @eucyt in #587
- Fix pebble for array-type query parameter by @habara-k in #586
- Update CONTRIBUTING.md to enhance development guidelines by @eucyt in #600
Full Changelog: v8.13.1...v8.14.0
v8.13.1 Fix type of CreateAudienceGroupResponse#expireTimestamp
What's Changed
Type for CreateAudienceGroupResponse#expireTimestamp is not float or double, but integer actually. This change fixes type.
- Fix type of expireTimestamp by @github-actions in #581
(original PR is line/line-openapi#106)
line-openapi updates
Dependency updates
Full Changelog: v8.13.0...v8.13.1
This release is prepared by @Yang-33
v8.13.0 Add includesOwnedAudienceGroups Parameter to Audience API
What's Changed
- Add includesOwnedAudienceGroups Parameter to Audience API by @github-actions in #577
Enhancement to Shared Audiences API
Support a new query parameter includesOwnedAudienceGroups to the client.getSharedAudienceGroups (GET /v2/bot/audienceGroup/shared/list). This enhancement allows users to specify whether to include audience groups owned by the user in the response. It is especially useful for users who manage both shared and owned audience groups.
Specifications
- Added the
includesOwnedAudienceGroupsparameter 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.
Remove deprecated API
- Removed the
/v2/bot/audienceGroup/{audienceGroupId}/activateand/v2/bot/audienceGroup/authorityLevelendpoints.
Documents and Reference
For more information, please refer to the links provided above.
(original PR is line/line-openapi#105)
line-openapi updates
- Add type as required property in source object of webhook by @github-actions in #572
- chore(deps): update line-openapi digest to 954b163 by @renovate in #566
- chore(deps): update line-openapi digest to 0e669d0 by @renovate in #568
- chore(deps): update line-openapi digest to 31fa3c7 by @renovate in #571
Dependency updates
- chore(deps): update suzuki-shunsuke/pinact-action action to v0.2.2 by @renovate in #563
- chore(deps): update suzuki-shunsuke/pinact-action action to v1 by @renovate in #564
- chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.3 by @renovate in #565
- fix(deps): update dependency io.pebbletemplates:pebble to v3.2.4 by @renovate in #567
- chore(deps): update junit5 monorepo to v5.12.2 by @renovate in #575
- chore(deps): update actions/setup-node action to v4.4.0 by @renovate in #576
Other Changes
- Skip creating PR when only git submodule is updated by @Yang-33 in #562
- Require more jobs in merge queue by @Yang-33 in #570
- Do not create another auto PR when a job runs for PR by @Yang-33 in #573
- Do not create another auto PR when a job runs for PR or merge queue by @Yang-33 in #574
- Drop Go 1.22 and support 1.24 by @mokuzon in #578
Full Changelog: v8.12.1...v8.13.0
This release is prepared by @eucyt
v8.12.1 Support new Membership API and Webhook
What's Changed
Note this patch is not related to sdk users. This release is just for our test. See https://github.com/line/line-bot-sdk-go/releases/tag/v8.12.0 about new features.
line-openapi updates
- chore(deps): update line-openapi digest to 0af4f53 by @renovate in #548
- chore(deps): update line-openapi digest to 9dec0f8 by @renovate in #553
- chore(deps): update line-openapi digest to cc542e3 by @renovate in #557
Dependency updates
- chore(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.14.0 by @renovate in #544
- chore(deps): update junit5 monorepo to v5.12.0 by @renovate in #545
- fix(deps): update dependency org.openapitools:openapi-generator to v7.12.0 by @renovate in #546
- chore(deps): update dependency go to 1.24 by @renovate in #552
- chore(deps): update junit5 monorepo to v5.12.1 by @renovate in #554
Other Changes
- Add EoL and new release reminder by @Yang-33 in #549
- Pin commit hash of github actions to avoid supply chain attacks by @Yang-33 in #555
- Grant minimum permissions to github acitons workflow jobs by @Yang-33 in #556
- Migrate renovate config by @Yang-33 in #561
Full Changelog: v8.12.0...v8.12.1
This release is prepared by @Yang-33
v8.12.0 Support new Membership API and Webhook
What's Changed
- Support new Membership API and Webhook by @github-actions in #542
Support new Membership API and Webhook
We have implemented and supported new API and Webhook about Membership.
API to get a list of users who joined the membership
You can obtain a list of user IDs for users who have joined the membership of your LINE Official Account by calling client.getJoinedMembershipUsers(...).
Documents: https://developers.line.biz/en/reference/messaging-api/#get-membership-user-ids
Membership Webhook
We have introduced new Webhook events MembershipEvent that indicates that a user has joined, left or renewed a membership of your LINE Official Account.
Documents: https://developers.line.biz/en/reference/messaging-api/#membership-event
For more details
For more details, check out the announcement: https://developers.line.biz/en/news/2025/02/13/membership-api/
(original PR is line/line-openapi#86)
Full Changelog: v8.11.0...v8.12.0
This release is prepared by @eucyt