diff --git a/lib/line/bot/v2/messaging_api/.openapi-generator/FILES b/lib/line/bot/v2/messaging_api/.openapi-generator/FILES
index 4a2a3056..86f02637 100644
--- a/lib/line/bot/v2/messaging_api/.openapi-generator/FILES
+++ b/lib/line/bot/v2/messaging_api/.openapi-generator/FILES
@@ -120,6 +120,7 @@ model/location_action.rb
model/location_message.rb
model/lottery_acquisition_condition_request.rb
model/lottery_acquisition_condition_response.rb
+model/mark_messages_as_read_by_token_request.rb
model/mark_messages_as_read_request.rb
model/members_ids_response.rb
model/membership.rb
diff --git a/lib/line/bot/v2/messaging_api/api/messaging_api_client.rb b/lib/line/bot/v2/messaging_api/api/messaging_api_client.rb
index 5171eaa5..19380d82 100644
--- a/lib/line/bot/v2/messaging_api/api/messaging_api_client.rb
+++ b/lib/line/bot/v2/messaging_api/api/messaging_api_client.rb
@@ -2527,6 +2527,59 @@ def mark_messages_as_read(
response_body
end
+ # Mark messages from users as read by token
+ # This requests to POST https://api.line.me/v2/bot/chat/markAsRead
+ # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
+ #
+ # @param mark_messages_as_read_by_token_request [MarkMessagesAsReadByTokenRequest]
+ # @see https://developers.line.biz/en/reference/messaging-api/#mark-as-read
+ # @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
+ # @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
+ # @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
+ def mark_messages_as_read_by_token_with_http_info( # steep:ignore MethodBodyTypeMismatch
+ mark_messages_as_read_by_token_request:
+ )
+ path = "/v2/bot/chat/markAsRead"
+
+ response = @http_client.post(
+ path: path,
+ body_params: mark_messages_as_read_by_token_request,
+ )
+
+ case response.code.to_i
+ when 200
+ [response.body, 200, response.each_header.to_h]
+ when 400
+ json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
+ json.transform_keys! do |key|
+ Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
+ end
+ response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments
+ [response_body, 400, response.each_header.to_h]
+ else
+ [response.body, response.code.to_i, response.each_header.to_h]
+ end
+ end
+
+ # Mark messages from users as read by token
+ # This requests to POST https://api.line.me/v2/bot/chat/markAsRead
+ # When you want to get HTTP status code or response headers, use {#mark_messages_as_read_by_token_with_http_info} instead of this.
+ #
+ # @param mark_messages_as_read_by_token_request [MarkMessagesAsReadByTokenRequest]
+ # @see https://developers.line.biz/en/reference/messaging-api/#mark-as-read
+ # @return [String, nil] when HTTP status code is 200
+ # @return [Line::Bot::V2::MessagingApi::ErrorResponse] when HTTP status code is 400
+ # @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
+ def mark_messages_as_read_by_token(
+ mark_messages_as_read_by_token_request:
+ )
+ response_body, _status_code, _headers = mark_messages_as_read_by_token_with_http_info(
+ mark_messages_as_read_by_token_request: mark_messages_as_read_by_token_request
+ )
+
+ response_body
+ end
+
# An API that efficiently sends the same message to multiple user IDs. You can't send messages to group chats or multi-person chats.
# This requests to POST https://api.line.me/v2/bot/message/multicast
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
diff --git a/lib/line/bot/v2/messaging_api/core.rb b/lib/line/bot/v2/messaging_api/core.rb
index 31446542..5714bc69 100644
--- a/lib/line/bot/v2/messaging_api/core.rb
+++ b/lib/line/bot/v2/messaging_api/core.rb
@@ -127,6 +127,7 @@
require_relative './model/location_message'
require_relative './model/lottery_acquisition_condition_request'
require_relative './model/lottery_acquisition_condition_response'
+require_relative './model/mark_messages_as_read_by_token_request'
require_relative './model/mark_messages_as_read_request'
require_relative './model/members_ids_response'
require_relative './model/membership'
diff --git a/lib/line/bot/v2/messaging_api/model/mark_messages_as_read_by_token_request.rb b/lib/line/bot/v2/messaging_api/model/mark_messages_as_read_by_token_request.rb
new file mode 100644
index 00000000..532ed4a6
--- /dev/null
+++ b/lib/line/bot/v2/messaging_api/model/mark_messages_as_read_by_token_request.rb
@@ -0,0 +1,67 @@
+# LINE Messaging API
+# This document describes LINE Messaging API.
+#
+# The version of the OpenAPI document: 0.0.1
+#
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+module Line
+ module Bot
+ module V2
+ module MessagingApi
+ # @see https://developers.line.biz/en/reference/messaging-api/#mark-as-read-request-body
+ class MarkMessagesAsReadByTokenRequest
+ # @!attribute [rw] mark_as_read_token
+ # @return [String] Token used to mark messages as read.
+ attr_accessor :mark_as_read_token
+
+ # @param mark_as_read_token [String] Token used to mark messages as read.
+ def initialize(
+ mark_as_read_token:,
+ **dynamic_attributes
+ )
+
+ @mark_as_read_token = mark_as_read_token
+
+ dynamic_attributes.each do |key, value|
+ self.class.attr_accessor key
+
+ if value.is_a?(Hash)
+ struct_klass = Struct.new(*value.keys.map(&:to_sym))
+ struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
+ instance_variable_set("@#{key}", struct_klass.new(*struct_values))
+ else
+ instance_variable_set("@#{key}", value)
+ end
+ end
+ end
+
+ # Create an instance of the class from a hash
+ # @param args [Hash] Hash containing all the required attributes
+ # @return [Line::Bot::V2::MessagingApi::MarkMessagesAsReadByTokenRequest] Instance of the class
+ def self.create(args) # steep:ignore
+ symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
+ return new(**symbolized_args) # steep:ignore
+ end
+
+ # @param other [Object] Object to compare
+ # @return [Boolean] true if the objects are equal, false otherwise
+ def ==(other)
+ return false unless self.class == other.class
+
+ instance_variables.all? do |var|
+ instance_variable_get(var) == other.instance_variable_get(var)
+ end
+ end
+
+ # @return [Integer] Hash code of the object
+ def hash
+ [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
+ end
+ end
+ end
+ end
+ end
+end
diff --git a/lib/line/bot/v2/webhook/model/audio_message_content.rb b/lib/line/bot/v2/webhook/model/audio_message_content.rb
index 94f72765..dba2d576 100644
--- a/lib/line/bot/v2/webhook/model/audio_message_content.rb
+++ b/lib/line/bot/v2/webhook/model/audio_message_content.rb
@@ -26,14 +26,19 @@ class AudioMessageContent < MessageContent
# @!attribute [rw] duration
# @return [Integer,nil] Length of audio file (milliseconds)
attr_accessor :duration
+ # @!attribute [rw] mark_as_read_token
+ # @return [String,nil] Token used to mark the message as read.
+ attr_accessor :mark_as_read_token
# @param id [String] Message ID
# @param content_provider [ContentProvider, Hash[Symbol, untyped]]
# @param duration [Integer,nil] Length of audio file (milliseconds)
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
def initialize(
id:,
content_provider:,
duration: nil,
+ mark_as_read_token: nil,
**dynamic_attributes
)
@type = "audio"
@@ -41,6 +46,7 @@ def initialize(
@id = id
@content_provider = content_provider.is_a?(Line::Bot::V2::Webhook::ContentProvider) ? content_provider : Line::Bot::V2::Webhook::ContentProvider.create(**content_provider) # steep:ignore
@duration = duration
+ @mark_as_read_token = mark_as_read_token
dynamic_attributes.each do |key, value|
self.class.attr_accessor key
diff --git a/lib/line/bot/v2/webhook/model/file_message_content.rb b/lib/line/bot/v2/webhook/model/file_message_content.rb
index 6961d099..4ad48dd0 100644
--- a/lib/line/bot/v2/webhook/model/file_message_content.rb
+++ b/lib/line/bot/v2/webhook/model/file_message_content.rb
@@ -26,14 +26,19 @@ class FileMessageContent < MessageContent
# @!attribute [rw] file_size
# @return [Integer] File size in bytes
attr_accessor :file_size
+ # @!attribute [rw] mark_as_read_token
+ # @return [String,nil] Token used to mark the message as read.
+ attr_accessor :mark_as_read_token
# @param id [String] Message ID
# @param file_name [String] File name
# @param file_size [Integer] File size in bytes
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
def initialize(
id:,
file_name:,
file_size:,
+ mark_as_read_token: nil,
**dynamic_attributes
)
@type = "file"
@@ -41,6 +46,7 @@ def initialize(
@id = id
@file_name = file_name
@file_size = file_size
+ @mark_as_read_token = mark_as_read_token
dynamic_attributes.each do |key, value|
self.class.attr_accessor key
diff --git a/lib/line/bot/v2/webhook/model/image_message_content.rb b/lib/line/bot/v2/webhook/model/image_message_content.rb
index efb01aba..c821b178 100644
--- a/lib/line/bot/v2/webhook/model/image_message_content.rb
+++ b/lib/line/bot/v2/webhook/model/image_message_content.rb
@@ -29,16 +29,21 @@ class ImageMessageContent < MessageContent
# @!attribute [rw] quote_token
# @return [String] Quote token to quote this message.
attr_accessor :quote_token
+ # @!attribute [rw] mark_as_read_token
+ # @return [String,nil] Token used to mark the message as read.
+ attr_accessor :mark_as_read_token
# @param id [String] Message ID
# @param content_provider [ContentProvider, Hash[Symbol, untyped]]
# @param image_set [ImageSet, Hash[Symbol, untyped], nil]
# @param quote_token [String] Quote token to quote this message.
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
def initialize(
id:,
content_provider:,
image_set: nil,
quote_token:,
+ mark_as_read_token: nil,
**dynamic_attributes
)
@type = "image"
@@ -47,6 +52,7 @@ def initialize(
@content_provider = content_provider.is_a?(Line::Bot::V2::Webhook::ContentProvider) ? content_provider : Line::Bot::V2::Webhook::ContentProvider.create(**content_provider) # steep:ignore
@image_set = image_set.is_a?(Line::Bot::V2::Webhook::ImageSet) || image_set.nil? ? image_set : Line::Bot::V2::Webhook::ImageSet.create(**image_set) # steep:ignore
@quote_token = quote_token
+ @mark_as_read_token = mark_as_read_token
dynamic_attributes.each do |key, value|
self.class.attr_accessor key
diff --git a/lib/line/bot/v2/webhook/model/location_message_content.rb b/lib/line/bot/v2/webhook/model/location_message_content.rb
index 9629e07f..93dde49c 100644
--- a/lib/line/bot/v2/webhook/model/location_message_content.rb
+++ b/lib/line/bot/v2/webhook/model/location_message_content.rb
@@ -32,18 +32,23 @@ class LocationMessageContent < MessageContent
# @!attribute [rw] longitude
# @return [Float] Longitude
attr_accessor :longitude
+ # @!attribute [rw] mark_as_read_token
+ # @return [String,nil] Token used to mark the message as read.
+ attr_accessor :mark_as_read_token
# @param id [String] Message ID
# @param title [String,nil] Title
# @param address [String,nil] Address
# @param latitude [Float] Latitude
# @param longitude [Float] Longitude
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
def initialize(
id:,
title: nil,
address: nil,
latitude:,
longitude:,
+ mark_as_read_token: nil,
**dynamic_attributes
)
@type = "location"
@@ -53,6 +58,7 @@ def initialize(
@address = address
@latitude = latitude
@longitude = longitude
+ @mark_as_read_token = mark_as_read_token
dynamic_attributes.each do |key, value|
self.class.attr_accessor key
diff --git a/lib/line/bot/v2/webhook/model/sticker_message_content.rb b/lib/line/bot/v2/webhook/model/sticker_message_content.rb
index b0b02d2c..36c59c9e 100644
--- a/lib/line/bot/v2/webhook/model/sticker_message_content.rb
+++ b/lib/line/bot/v2/webhook/model/sticker_message_content.rb
@@ -40,8 +40,11 @@ class StickerMessageContent < MessageContent
# @return [String] Quote token to quote this message.
attr_accessor :quote_token
# @!attribute [rw] quoted_message_id
- # @return [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
+ # @return [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
attr_accessor :quoted_message_id
+ # @!attribute [rw] mark_as_read_token
+ # @return [String,nil] Token used to mark the message as read.
+ attr_accessor :mark_as_read_token
# @param id [String] Message ID
# @param package_id [String] Package ID
@@ -50,7 +53,8 @@ class StickerMessageContent < MessageContent
# @param keywords [Array[String],nil] Array of up to 15 keywords describing the sticker. If a sticker has 16 or more keywords, a random selection of 15 keywords will be returned. The keyword selection is random for each event, so different keywords may be returned for the same sticker.
# @param text [String,nil] Any text entered by the user. This property is only included for message stickers. Max character limit: 100
# @param quote_token [String] Quote token to quote this message.
- # @param quoted_message_id [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
+ # @param quoted_message_id [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
def initialize(
id:,
package_id:,
@@ -60,6 +64,7 @@ def initialize(
text: nil,
quote_token:,
quoted_message_id: nil,
+ mark_as_read_token: nil,
**dynamic_attributes
)
@type = "sticker"
@@ -72,6 +77,7 @@ def initialize(
@text = text
@quote_token = quote_token
@quoted_message_id = quoted_message_id
+ @mark_as_read_token = mark_as_read_token
dynamic_attributes.each do |key, value|
self.class.attr_accessor key
diff --git a/lib/line/bot/v2/webhook/model/text_message_content.rb b/lib/line/bot/v2/webhook/model/text_message_content.rb
index 7cef3d32..90d145f8 100644
--- a/lib/line/bot/v2/webhook/model/text_message_content.rb
+++ b/lib/line/bot/v2/webhook/model/text_message_content.rb
@@ -35,6 +35,9 @@ class TextMessageContent < MessageContent
# @!attribute [rw] quoted_message_id
# @return [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
attr_accessor :quoted_message_id
+ # @!attribute [rw] mark_as_read_token
+ # @return [String,nil] Token used to mark the message as read.
+ attr_accessor :mark_as_read_token
# @param id [String] Message ID
# @param text [String] Message text.
@@ -42,6 +45,7 @@ class TextMessageContent < MessageContent
# @param mention [Mention, Hash[Symbol, untyped], nil]
# @param quote_token [String] Quote token to quote this message.
# @param quoted_message_id [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
def initialize(
id:,
text:,
@@ -49,6 +53,7 @@ def initialize(
mention: nil,
quote_token:,
quoted_message_id: nil,
+ mark_as_read_token: nil,
**dynamic_attributes
)
@type = "text"
@@ -65,6 +70,7 @@ def initialize(
@mention = mention.is_a?(Line::Bot::V2::Webhook::Mention) || mention.nil? ? mention : Line::Bot::V2::Webhook::Mention.create(**mention) # steep:ignore
@quote_token = quote_token
@quoted_message_id = quoted_message_id
+ @mark_as_read_token = mark_as_read_token
dynamic_attributes.each do |key, value|
self.class.attr_accessor key
diff --git a/lib/line/bot/v2/webhook/model/video_message_content.rb b/lib/line/bot/v2/webhook/model/video_message_content.rb
index f87eb6ff..cce724f3 100644
--- a/lib/line/bot/v2/webhook/model/video_message_content.rb
+++ b/lib/line/bot/v2/webhook/model/video_message_content.rb
@@ -29,16 +29,21 @@ class VideoMessageContent < MessageContent
# @!attribute [rw] quote_token
# @return [String] Quote token to quote this message.
attr_accessor :quote_token
+ # @!attribute [rw] mark_as_read_token
+ # @return [String,nil] Token used to mark the message as read.
+ attr_accessor :mark_as_read_token
# @param id [String] Message ID
# @param duration [Integer,nil] Length of video file (milliseconds)
# @param content_provider [ContentProvider, Hash[Symbol, untyped]]
# @param quote_token [String] Quote token to quote this message.
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
def initialize(
id:,
duration: nil,
content_provider:,
quote_token:,
+ mark_as_read_token: nil,
**dynamic_attributes
)
@type = "video"
@@ -47,6 +52,7 @@ def initialize(
@duration = duration
@content_provider = content_provider.is_a?(Line::Bot::V2::Webhook::ContentProvider) ? content_provider : Line::Bot::V2::Webhook::ContentProvider.create(**content_provider) # steep:ignore
@quote_token = quote_token
+ @mark_as_read_token = mark_as_read_token
dynamic_attributes.each do |key, value|
self.class.attr_accessor key
diff --git a/line-openapi b/line-openapi
index 9488f69f..360cf19a 160000
--- a/line-openapi
+++ b/line-openapi
@@ -1 +1 @@
-Subproject commit 9488f69f56b16650e3b20d700efad5f1d5c5635a
+Subproject commit 360cf19a22f7810db52357d827636a31f29c0d91
diff --git a/sig/line/bot/v2/messaging_api/.openapi-generator/FILES b/sig/line/bot/v2/messaging_api/.openapi-generator/FILES
index 34463d4b..f2fee858 100644
--- a/sig/line/bot/v2/messaging_api/.openapi-generator/FILES
+++ b/sig/line/bot/v2/messaging_api/.openapi-generator/FILES
@@ -119,6 +119,7 @@ model/location_action.rbs
model/location_message.rbs
model/lottery_acquisition_condition_request.rbs
model/lottery_acquisition_condition_response.rbs
+model/mark_messages_as_read_by_token_request.rbs
model/mark_messages_as_read_request.rbs
model/members_ids_response.rbs
model/membership.rbs
diff --git a/sig/line/bot/v2/messaging_api/api/messaging_api_client.rbs b/sig/line/bot/v2/messaging_api/api/messaging_api_client.rbs
index 9c68a4b8..6fa6b04b 100644
--- a/sig/line/bot/v2/messaging_api/api/messaging_api_client.rbs
+++ b/sig/line/bot/v2/messaging_api/api/messaging_api_client.rbs
@@ -1534,6 +1534,40 @@ module Line
| String? # otherwise
)
+ # Mark messages from users as read by token
+ # This requests to POST https://api.line.me/v2/bot/chat/markAsRead
+ # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
+ #
+ # @param mark_messages_as_read_by_token_request [MarkMessagesAsReadByTokenRequest]
+ # @see https://developers.line.biz/en/reference/messaging-api/#mark-as-read
+ # @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
+ # @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
+ # @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
+ def mark_messages_as_read_by_token_with_http_info: (
+ mark_messages_as_read_by_token_request: MarkMessagesAsReadByTokenRequest
+ ) -> (
+ [String?, 200, Hash[untyped, untyped]] # when HTTP status code is 200
+ | [ErrorResponse, 400, Hash[untyped, untyped]] # when HTTP status code is 400
+ | [String?, Integer, Hash[untyped, untyped]] # otherwise
+ )
+
+ # Mark messages from users as read by token
+ # This requests to POST https://api.line.me/v2/bot/chat/markAsRead
+ # When you want to get HTTP status code or response headers, use {#mark_messages_as_read_by_token_with_http_info} instead of this.
+ #
+ # @param mark_messages_as_read_by_token_request [MarkMessagesAsReadByTokenRequest]
+ # @see https://developers.line.biz/en/reference/messaging-api/#mark-as-read
+ # @return [String, nil] when HTTP status code is 200
+ # @return [Line::Bot::V2::MessagingApi::ErrorResponse] when HTTP status code is 400
+ # @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
+ def mark_messages_as_read_by_token: (
+ mark_messages_as_read_by_token_request: MarkMessagesAsReadByTokenRequest
+ ) -> (
+ String? # when HTTP status code is 200
+ | ErrorResponse # when HTTP status code is 400
+ | String? # otherwise
+ )
+
# An API that efficiently sends the same message to multiple user IDs. You can't send messages to group chats or multi-person chats.
# This requests to POST https://api.line.me/v2/bot/message/multicast
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
diff --git a/sig/line/bot/v2/messaging_api/model/mark_messages_as_read_by_token_request.rbs b/sig/line/bot/v2/messaging_api/model/mark_messages_as_read_by_token_request.rbs
new file mode 100644
index 00000000..0778dbee
--- /dev/null
+++ b/sig/line/bot/v2/messaging_api/model/mark_messages_as_read_by_token_request.rbs
@@ -0,0 +1,40 @@
+# LINE Messaging API
+# This document describes LINE Messaging API.
+#
+# The version of the OpenAPI document: 0.0.1
+#
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+module Line
+ module Bot
+ module V2
+ module MessagingApi
+ # @see https://developers.line.biz/en/reference/messaging-api/#mark-as-read-request-body
+ class MarkMessagesAsReadByTokenRequest
+ attr_accessor mark_as_read_token: String
+
+
+ # @param mark_as_read_token [String] Token used to mark messages as read.
+ def initialize: (
+ mark_as_read_token: String,
+ **untyped dynamic_attributes
+ ) -> void
+
+ # Create an instance of the class from a hash
+ # @param args [Hash] Hash containing all the required attributes
+ # @return [Line::Bot::V2::MessagingApi::MarkMessagesAsReadByTokenRequest] Instance of the class
+ def self.create: (Hash[Symbol, untyped]) -> MarkMessagesAsReadByTokenRequest
+
+ # @param other [Object] Object to compare
+ # @return [Boolean] true if the objects are equal, false otherwise
+ def ==: (untyped other) -> bool
+
+ # @return [Integer] Hash code of the object
+ def hash: () -> Integer
+ end
+ end
+ end
+ end
+end
diff --git a/sig/line/bot/v2/webhook/model/audio_message_content.rbs b/sig/line/bot/v2/webhook/model/audio_message_content.rbs
index b041eb5e..7ff73190 100644
--- a/sig/line/bot/v2/webhook/model/audio_message_content.rbs
+++ b/sig/line/bot/v2/webhook/model/audio_message_content.rbs
@@ -16,15 +16,18 @@ module Line
attr_accessor id: String
attr_accessor content_provider: ContentProvider
attr_accessor duration: Integer?
+ attr_accessor mark_as_read_token: String?
# @param id [String] Message ID
# @param content_provider [ContentProvider, Hash[Symbol, untyped]]
# @param duration [Integer,nil] Length of audio file (milliseconds)
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
def initialize: (
id: String,
content_provider: ContentProvider| Hash[Symbol, untyped],
?duration: Integer?,
+ ?mark_as_read_token: String?,
**untyped dynamic_attributes
) -> void
diff --git a/sig/line/bot/v2/webhook/model/file_message_content.rbs b/sig/line/bot/v2/webhook/model/file_message_content.rbs
index 97876ee4..7ad9ca2b 100644
--- a/sig/line/bot/v2/webhook/model/file_message_content.rbs
+++ b/sig/line/bot/v2/webhook/model/file_message_content.rbs
@@ -16,15 +16,18 @@ module Line
attr_accessor id: String
attr_accessor file_name: String
attr_accessor file_size: Integer
+ attr_accessor mark_as_read_token: String?
# @param id [String] Message ID
# @param file_name [String] File name
# @param file_size [Integer] File size in bytes
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
def initialize: (
id: String,
file_name: String,
file_size: Integer,
+ ?mark_as_read_token: String?,
**untyped dynamic_attributes
) -> void
diff --git a/sig/line/bot/v2/webhook/model/image_message_content.rbs b/sig/line/bot/v2/webhook/model/image_message_content.rbs
index a9ca10d1..815e559d 100644
--- a/sig/line/bot/v2/webhook/model/image_message_content.rbs
+++ b/sig/line/bot/v2/webhook/model/image_message_content.rbs
@@ -17,17 +17,20 @@ module Line
attr_accessor content_provider: ContentProvider
attr_accessor image_set: ImageSet?
attr_accessor quote_token: String
+ attr_accessor mark_as_read_token: String?
# @param id [String] Message ID
# @param content_provider [ContentProvider, Hash[Symbol, untyped]]
# @param image_set [ImageSet, Hash[Symbol, untyped], nil]
# @param quote_token [String] Quote token to quote this message.
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
def initialize: (
id: String,
content_provider: ContentProvider| Hash[Symbol, untyped],
?image_set: ImageSet?| Hash[Symbol, untyped]?,
quote_token: String,
+ ?mark_as_read_token: String?,
**untyped dynamic_attributes
) -> void
diff --git a/sig/line/bot/v2/webhook/model/location_message_content.rbs b/sig/line/bot/v2/webhook/model/location_message_content.rbs
index b3f914d9..1f6428e2 100644
--- a/sig/line/bot/v2/webhook/model/location_message_content.rbs
+++ b/sig/line/bot/v2/webhook/model/location_message_content.rbs
@@ -18,6 +18,7 @@ module Line
attr_accessor address: String?
attr_accessor latitude: Float
attr_accessor longitude: Float
+ attr_accessor mark_as_read_token: String?
# @param id [String] Message ID
@@ -25,12 +26,14 @@ module Line
# @param address [String,nil] Address
# @param latitude [Float] Latitude
# @param longitude [Float] Longitude
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
def initialize: (
id: String,
?title: String?,
?address: String?,
latitude: Float,
longitude: Float,
+ ?mark_as_read_token: String?,
**untyped dynamic_attributes
) -> void
diff --git a/sig/line/bot/v2/webhook/model/sticker_message_content.rbs b/sig/line/bot/v2/webhook/model/sticker_message_content.rbs
index d6062383..772b6933 100644
--- a/sig/line/bot/v2/webhook/model/sticker_message_content.rbs
+++ b/sig/line/bot/v2/webhook/model/sticker_message_content.rbs
@@ -22,6 +22,7 @@ module Line
attr_accessor text: String?
attr_accessor quote_token: String
attr_accessor quoted_message_id: String?
+ attr_accessor mark_as_read_token: String?
# @param id [String] Message ID
@@ -31,7 +32,8 @@ module Line
# @param keywords [Array[String],nil] Array of up to 15 keywords describing the sticker. If a sticker has 16 or more keywords, a random selection of 15 keywords will be returned. The keyword selection is random for each event, so different keywords may be returned for the same sticker.
# @param text [String,nil] Any text entered by the user. This property is only included for message stickers. Max character limit: 100
# @param quote_token [String] Quote token to quote this message.
- # @param quoted_message_id [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
+ # @param quoted_message_id [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
def initialize: (
id: String,
package_id: String,
@@ -41,6 +43,7 @@ module Line
?text: String?,
quote_token: String,
?quoted_message_id: String?,
+ ?mark_as_read_token: String?,
**untyped dynamic_attributes
) -> void
diff --git a/sig/line/bot/v2/webhook/model/text_message_content.rbs b/sig/line/bot/v2/webhook/model/text_message_content.rbs
index 980c2c25..3a6fe1f0 100644
--- a/sig/line/bot/v2/webhook/model/text_message_content.rbs
+++ b/sig/line/bot/v2/webhook/model/text_message_content.rbs
@@ -19,6 +19,7 @@ module Line
attr_accessor mention: Mention?
attr_accessor quote_token: String
attr_accessor quoted_message_id: String?
+ attr_accessor mark_as_read_token: String?
# @param id [String] Message ID
@@ -27,6 +28,7 @@ module Line
# @param mention [Mention, Hash[Symbol, untyped], nil]
# @param quote_token [String] Quote token to quote this message.
# @param quoted_message_id [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
def initialize: (
id: String,
text: String,
@@ -34,6 +36,7 @@ module Line
?mention: Mention?| Hash[Symbol, untyped]?,
quote_token: String,
?quoted_message_id: String?,
+ ?mark_as_read_token: String?,
**untyped dynamic_attributes
) -> void
diff --git a/sig/line/bot/v2/webhook/model/video_message_content.rbs b/sig/line/bot/v2/webhook/model/video_message_content.rbs
index e15c0368..2a66c7c7 100644
--- a/sig/line/bot/v2/webhook/model/video_message_content.rbs
+++ b/sig/line/bot/v2/webhook/model/video_message_content.rbs
@@ -17,17 +17,20 @@ module Line
attr_accessor duration: Integer?
attr_accessor content_provider: ContentProvider
attr_accessor quote_token: String
+ attr_accessor mark_as_read_token: String?
# @param id [String] Message ID
# @param duration [Integer,nil] Length of video file (milliseconds)
# @param content_provider [ContentProvider, Hash[Symbol, untyped]]
# @param quote_token [String] Quote token to quote this message.
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
def initialize: (
id: String,
?duration: Integer?,
content_provider: ContentProvider| Hash[Symbol, untyped],
quote_token: String,
+ ?mark_as_read_token: String?,
**untyped dynamic_attributes
) -> void