Skip to content

fix: update module github.com/line/line-bot-sdk-go/v8 to v8.23.0 - #192

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/github.com-line-line-bot-sdk-go-v8-8.x
Oct 2, 2026
Merged

renovate[bot] merged 1 commit into
mainfrom
renovate/github.com-line-line-bot-sdk-go-v8-8.x

Conversation

@renovate

@renovate renovate Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/line/line-bot-sdk-go/v8 v8.22.0 → v8.23.0 age confidence

Release Notes

line/line-bot-sdk-go (github.com/line/line-bot-sdk-go/v8)

v8.23.0: Support templated LINE notification messages (PNP) and custom aggregation units

Compare Source

This version adds the templated LINE notification message (PNP) API, and lets you assign a custom aggregation unit (CAU) to LINE notification messages.

Schema changes: line/line-openapi#131

What's new
  • Templated PNP
    • Send — send a message built from a template registered in advance, by specifying a templateKey and substituting values into the template's emphasizedItem, items, and buttons. New endpoint: POST /v2/bot/message/pnp/templated/push.
    • Analytics — get the number of sent templated notification messages. New endpoint: GET /v2/bot/message/delivery/pnp/templated.
  • Custom aggregation unit — assign a custom aggregation unit to LINE notification messages (both templated and flexible) via customAggregationUnits, so their delivery can be aggregated per unit with the existing unit-based statistics APIs.

This is a partner-only feature that requires an application. For more details, see:

Example: send a templated LINE notification message
package main

import (
	"log"

	"github.com/line/line-bot-sdk-go/v8/linebot/messaging_api"
)

func main() {
	client, err := messaging_api.NewMessagingApiAPI("YOUR_CHANNEL_ACCESS_TOKEN")
	if err != nil {
		log.Fatal(err)
	}

	_, err = client.PushTemplatedMessagesByPhone(
		&messaging_api.PnpTemplatedMessageRequest{
			// SHA256 hash of the E.164-normalized destination phone number.
			To:          "0123...hashed_phone_number...cdef",
			TemplateKey: "order_confirmation",
			Body: &messaging_api.PnpTemplatedMessageBody{
				EmphasizedItem: &messaging_api.PnpTemplatedEmphasizedItem{
					ItemKey: "amount",
					Content: "$42.00",
				},
				Items: []messaging_api.PnpTemplatedItem{
					{ItemKey: "order_id", Content: "A1234567"},
					{ItemKey: "shop_name", Content: "LINE Store"},
				},
				Buttons: []messaging_api.PnpTemplatedButton{
					{ButtonKey: "detail", Url: "https://example.com/orders/A1234567"},
				},
			},
			CustomAggregationUnits: []string{"promotion_a"},
		},
		// xLineDeliveryTag (16-100 chars) is returned in the delivery completion webhook
		"order-A1234567-0001",
	)
	if err != nil {
		log.Fatal(err)
	}
}
Example: get the number of sent templated notification messages
package main

import (
	"fmt"
	"log"

	"github.com/line/line-bot-sdk-go/v8/linebot/messaging_api"
)

func main() {
	client, err := messaging_api.NewMessagingApiAPI("YOUR_CHANNEL_ACCESS_TOKEN")
	if err != nil {
		log.Fatal(err)
	}

	// GET /v2/bot/message/delivery/pnp/templated (date: yyyyMMdd, UTC+9)
	resp, err := client.GetPNPTemplatedMessageStatistics("20240916")
	if err != nil {
		log.Fatal(err)
	}

	fmt.Printf("status: %s\n", resp.Status)
	if resp.Status == messaging_api.NumberOfMessagesResponseSTATUS_READY {
		fmt.Printf("success: %d\n", resp.Success)
	}
}

What's Changed

line-openapi updates
Dependency updates
  • chore(deps): update actions/stale action to v10.4.0 by @​renovate[bot] in #​712
  • chore(deps): update junit-framework monorepo to v6.1.2 by @​renovate[bot] in #​713
  • chore(deps): update actions/setup-node action to v6.5.0 by @​renovate[bot] in #​714
  • chore(deps): update actions/setup-node action to v7 by @​renovate[bot] in #​715
  • chore(deps): update actions/setup-go action to v7 by @​renovate[bot] in #​716
  • chore(deps): update dependency org.apache.maven.plugins:maven-jar-plugin to v3.5.1 by @​renovate[bot] in #​717
  • chore(deps): update actions/setup-python action to v7 by @​renovate[bot] in #​718
  • fix(deps): update dependency org.openapitools:openapi-generator to v7.24.0 by @​renovate[bot] in #​719
  • chore(deps): update actions/checkout action to v7.0.1 by @​renovate[bot] in #​720
  • chore(deps): update actions/stale action to v11 by @​renovate[bot] in #​722
  • chore(deps): update junit-framework monorepo to v6.1.3 by @​renovate[bot] in #​725
  • chore(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.16.0 by @​renovate[bot] in #​730
  • fix(deps): update dependency org.openapitools:openapi-generator to v7.25.0 by @​renovate[bot] in #​729
  • chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.6.0 by @​renovate[bot] in #​731
  • chore(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.6.2 by @​renovate[bot] in #​732
Other Changes

Full Changelog: line/line-bot-sdk-go@v8.22.0...v8.23.0


This release is prepared by @​mokuzon


Configuration

📅 Schedule: (in timezone Asia/Tokyo)

  • Branch creation
    • "before 3am"
  • 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot requested a review from 23prime as a code owner October 2, 2026 16:55
@renovate
renovate Bot enabled auto-merge October 2, 2026 16:55
@renovate

renovate Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: gokabot-api-go/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • The go directive was updated for compatibility reasons

Due to Go's usage of Minimal Version Selection (MVS), these packages have been updated to the minimum version available, so will still abide by minimumReleaseAge=3 days

Details:

Package Change
go 1.25.6 -> 1.26

@coderabbitai

coderabbitai Bot commented Oct 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: f60d762f-8630-4673-b5af-7ae9a88dcd9b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Comment @coderabbitai help to get the list of available commands.

@renovate
renovate Bot merged commit 55d636c into main Oct 2, 2026
6 checks passed
@renovate
renovate Bot deleted the renovate/github.com-line-line-bot-sdk-go-v8-8.x branch October 2, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants