Skip to content

Releases: line/line-bot-sdk-ruby

v2.8.3 Add missing developers.line.biz urls

18 Jun 02:56
Immutable release. Only release title and notes can be modified.
1502599

Choose a tag to compare

What's Changed

  • Add missing developers.line.biz urls by @github-actions[bot] in #833

Some classes have developers.line.biz url, but others don't have it. This change adds missing urls.
Developer can get the latest information from the documentation, and search related information.

(original PR is line/line-openapi#122)

line-openapi updates

  • Fix document in revokeChannelToken by @github-actions[bot] in #832

Dependency updates

  • Update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.6 by @renovate[bot] in #822
  • Update dependency yard to v0.9.44 by @renovate[bot] in #823
  • Update suzuki-shunsuke/pinact-action action to v3 by @renovate[bot] in #824
  • Update dependency io.pebbletemplates:pebble to v4.1.2 by @renovate[bot] in #827
  • Update dependency rubocop to '~> 1.87.0' by @renovate[bot] in #828
  • Update actions/checkout action to v6.0.3 by @renovate[bot] in #829
  • Update ruby/setup-ruby action to v1.312.0 by @renovate[bot] in #831
  • Update openapi-generator-version to v7.23.0 by @renovate[bot] in #830

Other Changes

Full Changelog: v2.8.1...v2.8.2


This release is prepared by @Yang-33

v2.8.2 Add missing developers.line.biz urls

18 Jun 02:38
Immutable release. Only release title and notes can be modified.
b3de6a0

Choose a tag to compare

v2.8.1 Fix path traversal bug

29 May 04:45
Immutable release. Only release title and notes can be modified.
d18889e

Choose a tag to compare

What's Changed

Prevent path traversal by @Yang-33 in #820

  • malicious input is no longer accepted.

Dependency updates

  • Update dependency org.apache.maven.plugins:maven-enforcer-plugin to v3.6.3 by @renovate[bot] in #816
  • Update dependency rubocop to v1.86.2 by @renovate[bot] in #815
  • Update ruby/setup-ruby action to v1.308.0 by @renovate[bot] in #817
  • Update ruby/setup-ruby action to v1.310.0 by @renovate[bot] in #818
  • Update actions/stale action to v10.3.0 by @renovate[bot] in #819

Other Changes

Full Changelog: v2.8.0...v2.8.1


This release is prepared by @Yang-33

v2.8.0 Drop Ruby 3.2 support & update type gems

19 May 08:07
Immutable release. Only release title and notes can be modified.
1cae247

Choose a tag to compare

What's Changed

  • Drop Ruby 3.2 support by @mokuzon in #801
    • Ruby 3.2 was EOL on 2026-03-31.
  • Update dependency rbs to v4 by @renovate[bot] in #778
    • More strict type checking available by rbs 4.0 & steep 2.0.0.

line-openapi updates

  • Make body in setRichMenuImage required by @github-actions[bot] in #793

Dependency updates

  • Update rubygems/release-gem action to v1.2.0 by @renovate[bot] in #792
  • Update ruby/setup-ruby action to v1.300.0 by @renovate[bot] in #794
  • Update dependency rubocop to v1.86.1 by @renovate[bot] in #795
  • Update dependency yard to v0.9.39 by @renovate[bot] in #796
  • Update actions/upload-pages-artifact action to v5 by @renovate[bot] in #797
  • Update actions/github-script action to v9 by @renovate[bot] in #798
  • Update dependency yard to v0.9.42 [SECURITY] by @renovate[bot] in #799
  • Update ruby/setup-ruby action to v1.301.0 by @renovate[bot] in #800
  • Update dependency rake to v13.4.1 by @renovate[bot] in #802
  • Update ruby/setup-ruby action to v1.302.0 by @renovate[bot] in #804
  • Update dependency yard to v0.9.43 by @renovate[bot] in #805
  • Update actions/setup-node action to v6.4.0 by @renovate[bot] in #806
  • Update ruby/setup-ruby action to v1.305.0 by @renovate[bot] in #807
  • Update dependency irb to '~> 1.18.0' by @renovate[bot] in #809
  • Update ruby/setup-ruby action to v1.305.0 by @renovate[bot] in #810
  • Update ruby/setup-ruby action to v1.306.0 by @renovate[bot] in #811
  • Update openapi-generator-version to v7.22.0 by @renovate[bot] in #812
  • Update ruby/setup-ruby action to v1.307.0 by @renovate[bot] in #813

Full Changelog: v2.7.0...v2.8.0


This release is prepared by @mokuzon

v2.7.0 Add wrapper methods for JWT assertion and client secret authentication

07 Apr 11:21
Immutable release. Only release title and notes can be modified.
f34f596

Choose a tag to compare

What's Changed

Added feature

This release adds wrapper methods for ChannelAccessTokenClient#issue_stateless_channel_token, making stateless channel access token issuance simpler for both JWT assertion and client secret authentication. The original method accepts all parameters for two different authentication patterns, making it unclear which to pass for each pattern. These wrappers make the distinction explicit through their names and signatures.

- token = client.issue_stateless_channel_token(
-     grant_type: 'client_credentials',
-     client_assertion_type: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
-     client_assertion: client_assertion
- )
+ token = client.issue_stateless_channel_token_by_jwt_assertion(
+     client_assertion: client_assertion
+ )
- token = client.issue_stateless_channel_token(
-     grant_type: 'client_credentials',
-     client_id: client_id,
-     client_secret: client_secret
- )
+ token = client.issue_stateless_channel_token_by_client_secret(
+     client_id: client_id,
+     client_secret: client_secret
+ )
  • Implement wrapper method of issue_stateless_channel_token by @habara-k in #784

line-openapi updates

  • Update line-openapi digest to 982bad2 by @renovate[bot] in #777

Dependency updates

  • Update actions/checkout action to v6.0.2 by @renovate[bot] in #748
  • Update ruby/setup-ruby action to v1.284.0 by @renovate[bot] in #749
  • Update openapi-generator-version to v7.19.0 by @renovate[bot] in #750
  • Update ruby/setup-ruby action to v1.285.0 by @renovate[bot] in #751
  • Update ruby/setup-ruby action to v1.286.0 by @renovate[bot] in #752
  • Update actions/setup-java action to v5.2.0 by @renovate[bot] in #753
  • Update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.15.0 by @renovate[bot] in #754
  • Update dependency rbs to v3.10.3 by @renovate[bot] in #755
  • Update ruby/setup-ruby action to v1.287.0 by @renovate[bot] in #756
  • Update suzuki-shunsuke/pinact-action action to v1.4.0 by @renovate[bot] in #757
  • Update ruby/setup-ruby action to v1.288.0 by @renovate[bot] in #759
  • Update dependency io.pebbletemplates:pebble to v4.1.1 by @renovate[bot] in #760
  • Update actions/stale action to v10.2.0 by @renovate[bot] in #761
  • Update dependency rack to v3.2.5 [SECURITY] by @renovate[bot] in #762
  • Update openapi-generator-version to v7.20.0 by @renovate[bot] in #763
  • Update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.5 by @renovate[bot] in #764
  • Update dependency rubocop to '~> 1.85.0' by @renovate[bot] in #717
  • Update dependency org.apache.maven.plugins:maven-shade-plugin to v3.6.2 by @renovate[bot] in #765
  • Update actions/setup-node action to v6.3.0 by @renovate[bot] in #766
  • Update ruby/setup-ruby action to v1.289.0 by @renovate[bot] in #767
  • Update dependency irb to '~> 1.17.0' by @renovate[bot] in #768
  • Update ruby/setup-ruby action to v1.290.0 by @renovate[bot] in #769
  • Update rubygems/release-gem action to v1.1.3 by @renovate[bot] in #770
  • Update ruby/setup-ruby action to v1.292.0 by @renovate[bot] in #771
  • Update rubygems/release-gem action to v1.1.4 by @renovate[bot] in #772
  • Update dependency rubocop to '~> 1.86.0' by @renovate[bot] in #774
  • Update openapi-generator-version to v7.21.0 by @renovate[bot] in #775
  • Update dependency webmock to v3.26.2 by @renovate[bot] in #773
  • Update actions/deploy-pages action to v5 by @renovate[bot] in #782
  • Update suzuki-shunsuke/pinact-action action to v2 by @renovate[bot] in #779
  • Update ruby/setup-ruby action to v1.295.0 by @renovate[bot] in #776
  • Update actions/configure-pages action to v6 by @renovate[bot] in #781
  • Update dependency rbs to v3.10.4 by @renovate[bot] in #783
  • Update ruby/setup-ruby action to v1.296.0 by @renovate[bot] in #786
  • Update ruby/setup-ruby action to v1.297.0 by @renovate[bot] in #787
  • Update ruby/setup-ruby action to v1.298.0 by @renovate[bot] in #789
  • Update dependency rack to v3.2.6 [SECURITY] by @renovate[bot] in #788
  • Update ruby/setup-ruby action to v1.299.0 by @renovate[bot] in #790

Other Changes

  • Try support Ruby 4.0 by @mokuzon in #758
  • Add test for verifyChannelTokenByJWT and getsAllValidChannelAccessTokenKeyIds by @Yang-33 in #785

Full Changelog: v2.6.1...v2.7.0


This release is prepared by @habara-k

v2.6.1 Support new AudienceGroupType TRACKINGTAG_WEBTRAFFIC to Audience Group API

22 Jan 05:34
Immutable release. Only release title and notes can be modified.
29ed3ae

Choose a tag to compare

What's Changed

  • Add new AudienceGroupType TRACKINGTAG_WEBTRAFFIC to Audience Group API by @github-actions[bot] in #742

Add TRACKINGTAG_WEBTRAFFIC to AudienceGroupType Enum

We have supported for the new audience‑group type TRACKINGTAG_WEBTRAFFIC (Tracking Tag Webtraffic audience) to the OpenAPI schema.

Changes Made

  • Updated AudienceGroupType enumeration

    • New value: TRACKINGTAG_WEBTRAFFIC
    • Description: Audience groups generated from Tracking Tag Webtraffic.

Purpose

This update enables correct identification and handling of audience groups built from Tracking Tag Webtraffric.

Documents and Reference

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

(original PR is line/line-openapi#118)

line-openapi updates

  • Update line-openapi digest to f406009 by @renovate[bot] in #713

Dependency updates

  • Update dependency rubocop to v1.81.7 by @renovate[bot] in #698
  • Update dependency rack to v3.2.4 by @renovate[bot] in #699
  • Update dependency org.apache.maven.plugins:maven-jar-plugin to v3.5.0 by @renovate[bot] in #700
  • Update actions/checkout action to v5.0.1 by @renovate[bot] in #701
  • Update ruby/setup-ruby action to v1.268.0 by @renovate[bot] in #702
  • Update actions/checkout action to v6 by @renovate[bot] in #703
  • Update dependency io.pebbletemplates:pebble to v4 by @renovate[bot] in #704
  • Update dependency webrick to v1.9.2 by @renovate[bot] in #705
  • Update actions/checkout action to v6.0.1 by @renovate[bot] in #706
  • Update actions/stale action to v10.1.1 by @renovate[bot] in #707
  • Update actions/setup-node action to v6.1.0 by @renovate[bot] in #708
  • Update actions/setup-java action to v5.1.0 by @renovate[bot] in #709
  • Update dependency yard to v0.9.38 by @renovate[bot] in #711
  • Update ruby/setup-ruby action to v1.269.0 by @renovate[bot] in #712
  • Update dependency rackup to v2.3.1 by @renovate[bot] in #710
  • Update ruby/setup-ruby action to v1.270.0 by @renovate[bot] in #715
  • Update dependency ruby to v3.4.8 by @renovate[bot] in #716
  • Update ruby/setup-ruby action to v1.271.0 by @renovate[bot] in #718
  • Update ruby/setup-ruby action to v1.272.0 by @renovate[bot] in #719
  • Update ruby/setup-ruby action to v1.273.0 by @renovate[bot] in #720
  • Update ruby/setup-ruby action to v1.274.0 by @renovate[bot] in #722
  • Update ruby/setup-ruby action to v1.275.0 by @renovate[bot] in #723
  • Update openapi-generator-version to v7.18.0 by @renovate[bot] in #724
  • Update dependency rbs to '~> 3.10.0' by @renovate[bot] in #725
  • Update dependency ruby to v4 by @renovate[bot] in #726
  • Update ruby/setup-ruby action to v1.276.0 by @renovate[bot] in #727
  • Update suzuki-shunsuke/pinact-action action to v1.0.1 by @renovate[bot] in #728
  • Update suzuki-shunsuke/pinact-action action to v1.1.0 by @renovate[bot] in #729
  • Update suzuki-shunsuke/pinact-action action to v1.2.0 by @renovate[bot] in #730
  • Update suzuki-shunsuke/pinact-action action to v1.3.0 by @renovate[bot] in #731
  • Update suzuki-shunsuke/pinact-action action to v1.3.1 by @renovate[bot] in #732
  • Update ruby/setup-ruby action to v1.277.0 by @renovate[bot] in #733
  • Update ruby/setup-ruby action to v1.278.0 by @renovate[bot] in #734
  • Update ruby/setup-ruby action to v1.279.0 by @renovate[bot] in #735
  • Update dependency rbs to v3.10.1 by @renovate[bot] in #737
  • Update ruby/setup-ruby action to v1.280.0 by @renovate[bot] in #738
  • Update ruby/setup-ruby action to v1.281.0 by @renovate[bot] in #739
  • Update dependency ruby to v4.0.1 by @renovate[bot] in #740
  • Update ruby/setup-ruby action to v1.282.0 by @renovate[bot] in #741
  • Update ruby/setup-ruby action to v1.283.0 by @renovate[bot] in #744

Other Changes

  • Delete unused code to generate code by @eucyt in #736
  • Disable Ruby updates by Renovate and revert to Ruby v3 by @eucyt in #745

New Contributors

Full Changelog: v2.5.0...v2.6.1


This release is prepared by @eucyt

v2.5.0 Support mark as read by token API

07 Nov 08:15
Immutable release. Only release title and notes can be modified.
6132028

Choose a tag to compare

What's Changed

  • Support mark as read by token API by @github-actions[bot] in #697

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 MessageContent 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/

(original PR is line/line-openapi#115)

Example

request = Line::Bot::V2::MessagingApi::MarkMessagesAsReadByTokenRequest.new(
  mark_as_read_token: event.message.mark_as_read_token
)
client.mark_messages_as_read_by_token(
  mark_messages_as_read_by_token_request: request
)

line-openapi updates

Dependency updates

Full Changelog: v2.4.0...v2.5.0


This release is prepared by @habara-k

v2.4.0 Add forbidPartialDelivery option to the Narrowcast Limit Object

24 Oct 02:08
Immutable release. Only release title and notes can be modified.
b1c5348

Choose a tag to compare

What's Changed

  • Add forbidPartialDelivery option to the Narrowcast Limit Object by @github-actions[bot] in #685

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:
client.narrowcast(
  Line::Bot::V2::MessagingApi::NarrowcastRequest.new(
    messages: [
      Line::Bot::V2::MessagingApi::TextMessage.new(text: 'Hello')
    ],
    limit: Line::Bot::V2::MessagingApi::Limit.new(
      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

  • Update ruby/setup-ruby action to v1.259.0 by @renovate[bot] in #667
  • Update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.14.1 by @renovate[bot] in #668
  • Update ruby/setup-ruby action to v1.260.0 by @renovate[bot] in #669
  • Update ruby/setup-ruby action to v1.261.0 by @renovate[bot] in #670
  • Update ruby/setup-ruby action to v1.262.0 by @renovate[bot] in #671
  • Update ruby/setup-ruby action to v1.263.0 by @renovate[bot] in #672
  • Update dependency rubocop to '~> 1.81.0' by @renovate[bot] in #673
  • Update openapi-generator-version to v7.16.0 by @renovate[bot] in #674
  • Update dependency org.apache.maven.plugins:maven-enforcer-plugin to v3.6.2 by @renovate[bot] in #675
  • Update dependency rack to v3.2.2 [SECURITY] by @renovate[bot] in #676
  • Update dependency ruby to v3.4.6 by @renovate[bot] in #677
  • Update dependency rack to v3.2.3 [SECURITY] by @renovate[bot] in #678
  • Update actions/stale action to v10.1.0 by @renovate[bot] in #679
  • Update dependency ruby to v3.4.7 by @renovate[bot] in #680
  • Update ruby/setup-ruby action to v1.264.0 by @renovate[bot] in #682
  • Update ruby/setup-ruby action to v1.265.0 by @renovate[bot] in #683
  • Update actions/setup-node action to v6 by @renovate[bot] in #684

Other Changes

  • Prevent command injection when creating release notes by @Yang-33 in #681

Full Changelog: v2.3.0...v2.4.0


This release is prepared by @habara-k

v2.3.0 Add an Option to Skip Webhook Signature Verification

24 Sep 01:53
Immutable release. Only release title and notes can be modified.
9eb91a6

Choose a tag to compare

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:

def parser
  @parser ||= Line::Bot::V2::WebhookParser.new(
    channel_secret: ENV.fetch("LINE_CHANNEL_SECRET"),
    skip_signature_verification: -> { ENV['SKIP_SIGNATURE_VERIFICATION'] == 'true' }
  )
end

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

  • Update dependency rubocop to v1.80.1 by @renovate[bot] in #651
  • Update ruby/setup-ruby action to v1.257.0 by @renovate[bot] in #653
  • Update dependency rack to v3.2.1 by @renovate[bot] in #654
  • Update dependency rubocop to v1.80.2 by @renovate[bot] in #655
  • Update actions/setup-node action to v5 by @renovate[bot] in #656
  • Update actions/stale action to v10 by @renovate[bot] in #657
  • Update actions/github-script action to v7.1.0 by @renovate[bot] in #658
  • Update actions/github-script action to v8 by @renovate[bot] in #659
  • Update dependency rbs to v3.9.5 by @renovate[bot] in #660
  • Update dependency org.apache.maven.plugins:maven-shade-plugin to v3.6.1 by @renovate[bot] in #662
  • Update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.4 by @renovate[bot] in #663
  • Update ruby/setup-ruby action to v1.258.0 by @renovate[bot] in #666

Other Changes

  • Set minimumReleaseAge to 7 days to avoid merge renovate PR quickly by @Yang-33 in #661
  • Use github actor id instead of bot name to avoid renaming issues by @Yang-33 in #665

Full Changelog: v2.2.0...v2.3.0

v2.2.0 Support new AudienceGroupType POP_AD_IMP to Audience Group API

26 Aug 01:48
dee4727

Choose a tag to compare

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 #650

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

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

(original PR is line/line-openapi#113)

Dependency updates

  • Update actions/upload-pages-artifact action to v4 by @renovate[bot] in #645
  • Update ruby/setup-ruby action to v1.256.0 by @renovate[bot] in #646
  • Update actions/setup-java action to v5 by @renovate[bot] in #647
  • Update dependency rubocop to '~> 1.80.0' by @renovate[bot] in #648
  • Update openapi-generator-version to v7.15.0 by @renovate[bot] in #649

Full Changelog: v2.1.1...v2.2.0


This release is prepared by @eucyt