Skip to content

Update dependency line-bot-api to v2.11.0 - #921

Merged
renovate[bot] merged 1 commit into
masterfrom
renovate/line-bot-api-2.x-lockfile
Oct 6, 2026
Merged

renovate[bot] merged 1 commit into
masterfrom
renovate/line-bot-api-2.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
line-bot-api (changelog) 2.10.0 → 2.11.0 age confidence

Release Notes

line/line-bot-sdk-ruby (line-bot-api)

v2.11.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
require 'line-bot-api'

client = Line::Bot::V2::MessagingApi::ApiClient.new(
  channel_access_token: ENV.fetch("LINE_CHANNEL_ACCESS_TOKEN")
)

request = Line::Bot::V2::MessagingApi::PnpTemplatedMessageRequest.new(
  # Phone number normalized to E.164 and hashed with SHA256
  to: "0123...hashed_phone_number...cdef",
  template_key: "order_confirmation",
  body: Line::Bot::V2::MessagingApi::PnpTemplatedMessageBody.new(
    emphasized_item: Line::Bot::V2::MessagingApi::PnpTemplatedEmphasizedItem.new(
      item_key: "amount",
      content: "$42.00"
    ),
    items: [
      Line::Bot::V2::MessagingApi::PnpTemplatedItem.new(item_key: "order_id", content: "A1234567"),
      Line::Bot::V2::MessagingApi::PnpTemplatedItem.new(item_key: "shop_name", content: "LINE Store")
    ],
    buttons: [
      Line::Bot::V2::MessagingApi::PnpTemplatedButton.new(
        button_key: "detail",
        url: "https://example.com/orders/A1234567"
      )
    ]
  ),
  custom_aggregation_units: ["promotion_a"]
)

# x_line_delivery_tag (16-100 chars) is returned in the delivery completion webhook
client.push_templated_messages_by_phone(
  pnp_templated_message_request: request,
  x_line_delivery_tag: "order-A1234567-0001"
)
Example: get the number of sent templated notification messages
require 'line-bot-api'

client = Line::Bot::V2::MessagingApi::ApiClient.new(
  channel_access_token: ENV.fetch("LINE_CHANNEL_ACCESS_TOKEN")
)

# GET /v2/bot/message/delivery/pnp/templated (date: yyyyMMdd, UTC+9)
response = client.get_pnp_templated_message_statistics(date: "20240916")

puts response.status   # "ready" / "unready" / "unavailable_for_privacy" / "out_of_service"
puts response.success

What's Changed

line-openapi updates
Dependency updates

Full Changelog: v2.10.0...v2.11.0


This release is prepared by @​mokuzon


Configuration

📅 Schedule: (in timezone Asia/Tokyo)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR becomes conflicted, 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 enabled auto-merge October 6, 2026 09:27
@renovate
renovate Bot added this pull request to the merge queue Oct 6, 2026
Merged via the queue into master with commit afa048f Oct 6, 2026
11 checks passed
@renovate
renovate Bot deleted the renovate/line-bot-api-2.x-lockfile branch October 6, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants