line-bot-api 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be6eb3e791b7dcee332f13b1e1e4c42940b15b6518de39a5f7357fbdf74d4283
4
- data.tar.gz: 2a320c486f1a21761aa04c7e80948fb95c3f8e19c283f8ca93249b1f649f2cf4
3
+ metadata.gz: e67d68d75f87839c375d820c8eb89b1f3b2979329ae734348e74ca9f965f5bd1
4
+ data.tar.gz: 25f93efbda90efc0fac26564cc0e56def7e03f91876a3ec29289b5cfc3e0f12b
5
5
  SHA512:
6
- metadata.gz: 441bc6461be06d17727b6451a3ae298a8995533397fad4d6b3eabe1e56035454b4288fcc0d4777f2749a1a157c01719a567c3fc4fe0216ecd695f46e7b396296
7
- data.tar.gz: ed25dc17d4624daaf62deb3894584f66a224c4ce5d1df609cf0dd7f3c189a31fc03592955db9617765359876cbd81587990baf0977880f286995719332203af1
6
+ metadata.gz: 2c830f9407def07c28d6b22cc95bd8abefb63d75ea9c8892a545f3c4e6340b1e697a7d91dd7c043d0bb92c795e23b99b2d47f9fe743bdaccc60ddb7fdd554b59
7
+ data.tar.gz: 213acc1b398c727dd2df409dd8a0036d5271f63456d3a94a87e082d196e901c43f819cd813bc4485a71674e92681854eddfb70abb166f0b0a99d76b958472c9e
@@ -2527,6 +2527,59 @@ module Line
2527
2527
  response_body
2528
2528
  end
2529
2529
 
2530
+ # Mark messages from users as read by token
2531
+ # This requests to <code>POST https://api.line.me/v2/bot/chat/markAsRead</code>
2532
+ # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2533
+ #
2534
+ # @param mark_messages_as_read_by_token_request [MarkMessagesAsReadByTokenRequest]
2535
+ # @see https://developers.line.biz/en/reference/messaging-api/#mark-as-read
2536
+ # @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
2537
+ # @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
2538
+ # @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
2539
+ def mark_messages_as_read_by_token_with_http_info( # steep:ignore MethodBodyTypeMismatch
2540
+ mark_messages_as_read_by_token_request:
2541
+ )
2542
+ path = "/v2/bot/chat/markAsRead"
2543
+
2544
+ response = @http_client.post(
2545
+ path: path,
2546
+ body_params: mark_messages_as_read_by_token_request,
2547
+ )
2548
+
2549
+ case response.code.to_i
2550
+ when 200
2551
+ [response.body, 200, response.each_header.to_h]
2552
+ when 400
2553
+ json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
2554
+ json.transform_keys! do |key|
2555
+ Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
2556
+ end
2557
+ response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments
2558
+ [response_body, 400, response.each_header.to_h]
2559
+ else
2560
+ [response.body, response.code.to_i, response.each_header.to_h]
2561
+ end
2562
+ end
2563
+
2564
+ # Mark messages from users as read by token
2565
+ # This requests to <code>POST https://api.line.me/v2/bot/chat/markAsRead</code>
2566
+ # When you want to get HTTP status code or response headers, use {#mark_messages_as_read_by_token_with_http_info} instead of this.
2567
+ #
2568
+ # @param mark_messages_as_read_by_token_request [MarkMessagesAsReadByTokenRequest]
2569
+ # @see https://developers.line.biz/en/reference/messaging-api/#mark-as-read
2570
+ # @return [String, nil] when HTTP status code is 200
2571
+ # @return [Line::Bot::V2::MessagingApi::ErrorResponse] when HTTP status code is 400
2572
+ # @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
2573
+ def mark_messages_as_read_by_token(
2574
+ mark_messages_as_read_by_token_request:
2575
+ )
2576
+ response_body, _status_code, _headers = mark_messages_as_read_by_token_with_http_info(
2577
+ mark_messages_as_read_by_token_request: mark_messages_as_read_by_token_request
2578
+ )
2579
+
2580
+ response_body
2581
+ end
2582
+
2530
2583
  # An API that efficiently sends the same message to multiple user IDs. You can't send messages to group chats or multi-person chats.
2531
2584
  # This requests to <code>POST https://api.line.me/v2/bot/message/multicast</code>
2532
2585
  # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
@@ -127,6 +127,7 @@ require_relative './model/location_action'
127
127
  require_relative './model/location_message'
128
128
  require_relative './model/lottery_acquisition_condition_request'
129
129
  require_relative './model/lottery_acquisition_condition_response'
130
+ require_relative './model/mark_messages_as_read_by_token_request'
130
131
  require_relative './model/mark_messages_as_read_request'
131
132
  require_relative './model/members_ids_response'
132
133
  require_relative './model/membership'
@@ -0,0 +1,67 @@
1
+ # LINE Messaging API
2
+ # This document describes LINE Messaging API.
3
+ #
4
+ # The version of the OpenAPI document: 0.0.1
5
+ #
6
+ # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ # https://openapi-generator.tech
8
+ # Do not edit the class manually.
9
+
10
+ module Line
11
+ module Bot
12
+ module V2
13
+ module MessagingApi
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#mark-as-read-request-body
15
+ class MarkMessagesAsReadByTokenRequest
16
+ # @!attribute [rw] mark_as_read_token
17
+ # @return [String] Token used to mark messages as read.
18
+ attr_accessor :mark_as_read_token
19
+
20
+ # @param mark_as_read_token [String] Token used to mark messages as read.
21
+ def initialize(
22
+ mark_as_read_token:,
23
+ **dynamic_attributes
24
+ )
25
+
26
+ @mark_as_read_token = mark_as_read_token
27
+
28
+ dynamic_attributes.each do |key, value|
29
+ self.class.attr_accessor key
30
+
31
+ if value.is_a?(Hash)
32
+ struct_klass = Struct.new(*value.keys.map(&:to_sym))
33
+ struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
34
+ instance_variable_set("@#{key}", struct_klass.new(*struct_values))
35
+ else
36
+ instance_variable_set("@#{key}", value)
37
+ end
38
+ end
39
+ end
40
+
41
+ # Create an instance of the class from a hash
42
+ # @param args [Hash] Hash containing all the required attributes
43
+ # @return [Line::Bot::V2::MessagingApi::MarkMessagesAsReadByTokenRequest] Instance of the class
44
+ def self.create(args) # steep:ignore
45
+ symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
46
+ return new(**symbolized_args) # steep:ignore
47
+ end
48
+
49
+ # @param other [Object] Object to compare
50
+ # @return [Boolean] true if the objects are equal, false otherwise
51
+ def ==(other)
52
+ return false unless self.class == other.class
53
+
54
+ instance_variables.all? do |var|
55
+ instance_variable_get(var) == other.instance_variable_get(var)
56
+ end
57
+ end
58
+
59
+ # @return [Integer] Hash code of the object
60
+ def hash
61
+ [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
@@ -26,14 +26,19 @@ module Line
26
26
  # @!attribute [rw] duration
27
27
  # @return [Integer,nil] Length of audio file (milliseconds)
28
28
  attr_accessor :duration
29
+ # @!attribute [rw] mark_as_read_token
30
+ # @return [String,nil] Token used to mark the message as read.
31
+ attr_accessor :mark_as_read_token
29
32
 
30
33
  # @param id [String] Message ID
31
34
  # @param content_provider [ContentProvider, Hash[Symbol, untyped]]
32
35
  # @param duration [Integer,nil] Length of audio file (milliseconds)
36
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
33
37
  def initialize(
34
38
  id:,
35
39
  content_provider:,
36
40
  duration: nil,
41
+ mark_as_read_token: nil,
37
42
  **dynamic_attributes
38
43
  )
39
44
  @type = "audio"
@@ -41,6 +46,7 @@ module Line
41
46
  @id = id
42
47
  @content_provider = content_provider.is_a?(Line::Bot::V2::Webhook::ContentProvider) ? content_provider : Line::Bot::V2::Webhook::ContentProvider.create(**content_provider) # steep:ignore
43
48
  @duration = duration
49
+ @mark_as_read_token = mark_as_read_token
44
50
 
45
51
  dynamic_attributes.each do |key, value|
46
52
  self.class.attr_accessor key
@@ -26,14 +26,19 @@ module Line
26
26
  # @!attribute [rw] file_size
27
27
  # @return [Integer] File size in bytes
28
28
  attr_accessor :file_size
29
+ # @!attribute [rw] mark_as_read_token
30
+ # @return [String,nil] Token used to mark the message as read.
31
+ attr_accessor :mark_as_read_token
29
32
 
30
33
  # @param id [String] Message ID
31
34
  # @param file_name [String] File name
32
35
  # @param file_size [Integer] File size in bytes
36
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
33
37
  def initialize(
34
38
  id:,
35
39
  file_name:,
36
40
  file_size:,
41
+ mark_as_read_token: nil,
37
42
  **dynamic_attributes
38
43
  )
39
44
  @type = "file"
@@ -41,6 +46,7 @@ module Line
41
46
  @id = id
42
47
  @file_name = file_name
43
48
  @file_size = file_size
49
+ @mark_as_read_token = mark_as_read_token
44
50
 
45
51
  dynamic_attributes.each do |key, value|
46
52
  self.class.attr_accessor key
@@ -29,16 +29,21 @@ module Line
29
29
  # @!attribute [rw] quote_token
30
30
  # @return [String] Quote token to quote this message.
31
31
  attr_accessor :quote_token
32
+ # @!attribute [rw] mark_as_read_token
33
+ # @return [String,nil] Token used to mark the message as read.
34
+ attr_accessor :mark_as_read_token
32
35
 
33
36
  # @param id [String] Message ID
34
37
  # @param content_provider [ContentProvider, Hash[Symbol, untyped]]
35
38
  # @param image_set [ImageSet, Hash[Symbol, untyped], nil]
36
39
  # @param quote_token [String] Quote token to quote this message.
40
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
37
41
  def initialize(
38
42
  id:,
39
43
  content_provider:,
40
44
  image_set: nil,
41
45
  quote_token:,
46
+ mark_as_read_token: nil,
42
47
  **dynamic_attributes
43
48
  )
44
49
  @type = "image"
@@ -47,6 +52,7 @@ module Line
47
52
  @content_provider = content_provider.is_a?(Line::Bot::V2::Webhook::ContentProvider) ? content_provider : Line::Bot::V2::Webhook::ContentProvider.create(**content_provider) # steep:ignore
48
53
  @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
49
54
  @quote_token = quote_token
55
+ @mark_as_read_token = mark_as_read_token
50
56
 
51
57
  dynamic_attributes.each do |key, value|
52
58
  self.class.attr_accessor key
@@ -32,18 +32,23 @@ module Line
32
32
  # @!attribute [rw] longitude
33
33
  # @return [Float] Longitude
34
34
  attr_accessor :longitude
35
+ # @!attribute [rw] mark_as_read_token
36
+ # @return [String,nil] Token used to mark the message as read.
37
+ attr_accessor :mark_as_read_token
35
38
 
36
39
  # @param id [String] Message ID
37
40
  # @param title [String,nil] Title
38
41
  # @param address [String,nil] Address
39
42
  # @param latitude [Float] Latitude
40
43
  # @param longitude [Float] Longitude
44
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
41
45
  def initialize(
42
46
  id:,
43
47
  title: nil,
44
48
  address: nil,
45
49
  latitude:,
46
50
  longitude:,
51
+ mark_as_read_token: nil,
47
52
  **dynamic_attributes
48
53
  )
49
54
  @type = "location"
@@ -53,6 +58,7 @@ module Line
53
58
  @address = address
54
59
  @latitude = latitude
55
60
  @longitude = longitude
61
+ @mark_as_read_token = mark_as_read_token
56
62
 
57
63
  dynamic_attributes.each do |key, value|
58
64
  self.class.attr_accessor key
@@ -40,8 +40,11 @@ module Line
40
40
  # @return [String] Quote token to quote this message.
41
41
  attr_accessor :quote_token
42
42
  # @!attribute [rw] quoted_message_id
43
- # @return [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
43
+ # @return [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
44
44
  attr_accessor :quoted_message_id
45
+ # @!attribute [rw] mark_as_read_token
46
+ # @return [String,nil] Token used to mark the message as read.
47
+ attr_accessor :mark_as_read_token
45
48
 
46
49
  # @param id [String] Message ID
47
50
  # @param package_id [String] Package ID
@@ -50,7 +53,8 @@ module Line
50
53
  # @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.
51
54
  # @param text [String,nil] Any text entered by the user. This property is only included for message stickers. Max character limit: 100
52
55
  # @param quote_token [String] Quote token to quote this message.
53
- # @param quoted_message_id [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
56
+ # @param quoted_message_id [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
57
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
54
58
  def initialize(
55
59
  id:,
56
60
  package_id:,
@@ -60,6 +64,7 @@ module Line
60
64
  text: nil,
61
65
  quote_token:,
62
66
  quoted_message_id: nil,
67
+ mark_as_read_token: nil,
63
68
  **dynamic_attributes
64
69
  )
65
70
  @type = "sticker"
@@ -72,6 +77,7 @@ module Line
72
77
  @text = text
73
78
  @quote_token = quote_token
74
79
  @quoted_message_id = quoted_message_id
80
+ @mark_as_read_token = mark_as_read_token
75
81
 
76
82
  dynamic_attributes.each do |key, value|
77
83
  self.class.attr_accessor key
@@ -35,6 +35,9 @@ module Line
35
35
  # @!attribute [rw] quoted_message_id
36
36
  # @return [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
37
37
  attr_accessor :quoted_message_id
38
+ # @!attribute [rw] mark_as_read_token
39
+ # @return [String,nil] Token used to mark the message as read.
40
+ attr_accessor :mark_as_read_token
38
41
 
39
42
  # @param id [String] Message ID
40
43
  # @param text [String] Message text.
@@ -42,6 +45,7 @@ module Line
42
45
  # @param mention [Mention, Hash[Symbol, untyped], nil]
43
46
  # @param quote_token [String] Quote token to quote this message.
44
47
  # @param quoted_message_id [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
48
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
45
49
  def initialize(
46
50
  id:,
47
51
  text:,
@@ -49,6 +53,7 @@ module Line
49
53
  mention: nil,
50
54
  quote_token:,
51
55
  quoted_message_id: nil,
56
+ mark_as_read_token: nil,
52
57
  **dynamic_attributes
53
58
  )
54
59
  @type = "text"
@@ -65,6 +70,7 @@ module Line
65
70
  @mention = mention.is_a?(Line::Bot::V2::Webhook::Mention) || mention.nil? ? mention : Line::Bot::V2::Webhook::Mention.create(**mention) # steep:ignore
66
71
  @quote_token = quote_token
67
72
  @quoted_message_id = quoted_message_id
73
+ @mark_as_read_token = mark_as_read_token
68
74
 
69
75
  dynamic_attributes.each do |key, value|
70
76
  self.class.attr_accessor key
@@ -29,16 +29,21 @@ module Line
29
29
  # @!attribute [rw] quote_token
30
30
  # @return [String] Quote token to quote this message.
31
31
  attr_accessor :quote_token
32
+ # @!attribute [rw] mark_as_read_token
33
+ # @return [String,nil] Token used to mark the message as read.
34
+ attr_accessor :mark_as_read_token
32
35
 
33
36
  # @param id [String] Message ID
34
37
  # @param duration [Integer,nil] Length of video file (milliseconds)
35
38
  # @param content_provider [ContentProvider, Hash[Symbol, untyped]]
36
39
  # @param quote_token [String] Quote token to quote this message.
40
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
37
41
  def initialize(
38
42
  id:,
39
43
  duration: nil,
40
44
  content_provider:,
41
45
  quote_token:,
46
+ mark_as_read_token: nil,
42
47
  **dynamic_attributes
43
48
  )
44
49
  @type = "video"
@@ -47,6 +52,7 @@ module Line
47
52
  @duration = duration
48
53
  @content_provider = content_provider.is_a?(Line::Bot::V2::Webhook::ContentProvider) ? content_provider : Line::Bot::V2::Webhook::ContentProvider.create(**content_provider) # steep:ignore
49
54
  @quote_token = quote_token
55
+ @mark_as_read_token = mark_as_read_token
50
56
 
51
57
  dynamic_attributes.each do |key, value|
52
58
  self.class.attr_accessor key
@@ -2,6 +2,6 @@ module Line
2
2
  module Bot
3
3
  # This version is updated before releasing a new version in the release process.
4
4
  # You don't have to update this version manually.
5
- VERSION = "2.4.0"
5
+ VERSION = "2.5.0"
6
6
  end
7
7
  end
@@ -1534,6 +1534,40 @@ module Line
1534
1534
  | String? # otherwise
1535
1535
  )
1536
1536
 
1537
+ # Mark messages from users as read by token
1538
+ # This requests to <code>POST https://api.line.me/v2/bot/chat/markAsRead</code>
1539
+ # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1540
+ #
1541
+ # @param mark_messages_as_read_by_token_request [MarkMessagesAsReadByTokenRequest]
1542
+ # @see https://developers.line.biz/en/reference/messaging-api/#mark-as-read
1543
+ # @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
1544
+ # @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
1545
+ # @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
1546
+ def mark_messages_as_read_by_token_with_http_info: (
1547
+ mark_messages_as_read_by_token_request: MarkMessagesAsReadByTokenRequest
1548
+ ) -> (
1549
+ [String?, 200, Hash[untyped, untyped]] # when HTTP status code is 200
1550
+ | [ErrorResponse, 400, Hash[untyped, untyped]] # when HTTP status code is 400
1551
+ | [String?, Integer, Hash[untyped, untyped]] # otherwise
1552
+ )
1553
+
1554
+ # Mark messages from users as read by token
1555
+ # This requests to <code>POST https://api.line.me/v2/bot/chat/markAsRead</code>
1556
+ # When you want to get HTTP status code or response headers, use {#mark_messages_as_read_by_token_with_http_info} instead of this.
1557
+ #
1558
+ # @param mark_messages_as_read_by_token_request [MarkMessagesAsReadByTokenRequest]
1559
+ # @see https://developers.line.biz/en/reference/messaging-api/#mark-as-read
1560
+ # @return [String, nil] when HTTP status code is 200
1561
+ # @return [Line::Bot::V2::MessagingApi::ErrorResponse] when HTTP status code is 400
1562
+ # @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
1563
+ def mark_messages_as_read_by_token: (
1564
+ mark_messages_as_read_by_token_request: MarkMessagesAsReadByTokenRequest
1565
+ ) -> (
1566
+ String? # when HTTP status code is 200
1567
+ | ErrorResponse # when HTTP status code is 400
1568
+ | String? # otherwise
1569
+ )
1570
+
1537
1571
  # An API that efficiently sends the same message to multiple user IDs. You can't send messages to group chats or multi-person chats.
1538
1572
  # This requests to <code>POST https://api.line.me/v2/bot/message/multicast</code>
1539
1573
  # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
@@ -0,0 +1,40 @@
1
+ # LINE Messaging API
2
+ # This document describes LINE Messaging API.
3
+ #
4
+ # The version of the OpenAPI document: 0.0.1
5
+ #
6
+ # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ # https://openapi-generator.tech
8
+ # Do not edit the class manually.
9
+
10
+ module Line
11
+ module Bot
12
+ module V2
13
+ module MessagingApi
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#mark-as-read-request-body
15
+ class MarkMessagesAsReadByTokenRequest
16
+ attr_accessor mark_as_read_token: String
17
+
18
+
19
+ # @param mark_as_read_token [String] Token used to mark messages as read.
20
+ def initialize: (
21
+ mark_as_read_token: String,
22
+ **untyped dynamic_attributes
23
+ ) -> void
24
+
25
+ # Create an instance of the class from a hash
26
+ # @param args [Hash] Hash containing all the required attributes
27
+ # @return [Line::Bot::V2::MessagingApi::MarkMessagesAsReadByTokenRequest] Instance of the class
28
+ def self.create: (Hash[Symbol, untyped]) -> MarkMessagesAsReadByTokenRequest
29
+
30
+ # @param other [Object] Object to compare
31
+ # @return [Boolean] true if the objects are equal, false otherwise
32
+ def ==: (untyped other) -> bool
33
+
34
+ # @return [Integer] Hash code of the object
35
+ def hash: () -> Integer
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -16,15 +16,18 @@ module Line
16
16
  attr_accessor id: String
17
17
  attr_accessor content_provider: ContentProvider
18
18
  attr_accessor duration: Integer?
19
+ attr_accessor mark_as_read_token: String?
19
20
 
20
21
 
21
22
  # @param id [String] Message ID
22
23
  # @param content_provider [ContentProvider, Hash[Symbol, untyped]]
23
24
  # @param duration [Integer,nil] Length of audio file (milliseconds)
25
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
24
26
  def initialize: (
25
27
  id: String,
26
28
  content_provider: ContentProvider| Hash[Symbol, untyped],
27
29
  ?duration: Integer?,
30
+ ?mark_as_read_token: String?,
28
31
  **untyped dynamic_attributes
29
32
  ) -> void
30
33
 
@@ -16,15 +16,18 @@ module Line
16
16
  attr_accessor id: String
17
17
  attr_accessor file_name: String
18
18
  attr_accessor file_size: Integer
19
+ attr_accessor mark_as_read_token: String?
19
20
 
20
21
 
21
22
  # @param id [String] Message ID
22
23
  # @param file_name [String] File name
23
24
  # @param file_size [Integer] File size in bytes
25
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
24
26
  def initialize: (
25
27
  id: String,
26
28
  file_name: String,
27
29
  file_size: Integer,
30
+ ?mark_as_read_token: String?,
28
31
  **untyped dynamic_attributes
29
32
  ) -> void
30
33
 
@@ -17,17 +17,20 @@ module Line
17
17
  attr_accessor content_provider: ContentProvider
18
18
  attr_accessor image_set: ImageSet?
19
19
  attr_accessor quote_token: String
20
+ attr_accessor mark_as_read_token: String?
20
21
 
21
22
 
22
23
  # @param id [String] Message ID
23
24
  # @param content_provider [ContentProvider, Hash[Symbol, untyped]]
24
25
  # @param image_set [ImageSet, Hash[Symbol, untyped], nil]
25
26
  # @param quote_token [String] Quote token to quote this message.
27
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
26
28
  def initialize: (
27
29
  id: String,
28
30
  content_provider: ContentProvider| Hash[Symbol, untyped],
29
31
  ?image_set: ImageSet?| Hash[Symbol, untyped]?,
30
32
  quote_token: String,
33
+ ?mark_as_read_token: String?,
31
34
  **untyped dynamic_attributes
32
35
  ) -> void
33
36
 
@@ -18,6 +18,7 @@ module Line
18
18
  attr_accessor address: String?
19
19
  attr_accessor latitude: Float
20
20
  attr_accessor longitude: Float
21
+ attr_accessor mark_as_read_token: String?
21
22
 
22
23
 
23
24
  # @param id [String] Message ID
@@ -25,12 +26,14 @@ module Line
25
26
  # @param address [String,nil] Address
26
27
  # @param latitude [Float] Latitude
27
28
  # @param longitude [Float] Longitude
29
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
28
30
  def initialize: (
29
31
  id: String,
30
32
  ?title: String?,
31
33
  ?address: String?,
32
34
  latitude: Float,
33
35
  longitude: Float,
36
+ ?mark_as_read_token: String?,
34
37
  **untyped dynamic_attributes
35
38
  ) -> void
36
39
 
@@ -22,6 +22,7 @@ module Line
22
22
  attr_accessor text: String?
23
23
  attr_accessor quote_token: String
24
24
  attr_accessor quoted_message_id: String?
25
+ attr_accessor mark_as_read_token: String?
25
26
 
26
27
 
27
28
  # @param id [String] Message ID
@@ -31,7 +32,8 @@ module Line
31
32
  # @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.
32
33
  # @param text [String,nil] Any text entered by the user. This property is only included for message stickers. Max character limit: 100
33
34
  # @param quote_token [String] Quote token to quote this message.
34
- # @param quoted_message_id [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
35
+ # @param quoted_message_id [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
36
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
35
37
  def initialize: (
36
38
  id: String,
37
39
  package_id: String,
@@ -41,6 +43,7 @@ module Line
41
43
  ?text: String?,
42
44
  quote_token: String,
43
45
  ?quoted_message_id: String?,
46
+ ?mark_as_read_token: String?,
44
47
  **untyped dynamic_attributes
45
48
  ) -> void
46
49
 
@@ -19,6 +19,7 @@ module Line
19
19
  attr_accessor mention: Mention?
20
20
  attr_accessor quote_token: String
21
21
  attr_accessor quoted_message_id: String?
22
+ attr_accessor mark_as_read_token: String?
22
23
 
23
24
 
24
25
  # @param id [String] Message ID
@@ -27,6 +28,7 @@ module Line
27
28
  # @param mention [Mention, Hash[Symbol, untyped], nil]
28
29
  # @param quote_token [String] Quote token to quote this message.
29
30
  # @param quoted_message_id [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
31
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
30
32
  def initialize: (
31
33
  id: String,
32
34
  text: String,
@@ -34,6 +36,7 @@ module Line
34
36
  ?mention: Mention?| Hash[Symbol, untyped]?,
35
37
  quote_token: String,
36
38
  ?quoted_message_id: String?,
39
+ ?mark_as_read_token: String?,
37
40
  **untyped dynamic_attributes
38
41
  ) -> void
39
42
 
@@ -17,17 +17,20 @@ module Line
17
17
  attr_accessor duration: Integer?
18
18
  attr_accessor content_provider: ContentProvider
19
19
  attr_accessor quote_token: String
20
+ attr_accessor mark_as_read_token: String?
20
21
 
21
22
 
22
23
  # @param id [String] Message ID
23
24
  # @param duration [Integer,nil] Length of video file (milliseconds)
24
25
  # @param content_provider [ContentProvider, Hash[Symbol, untyped]]
25
26
  # @param quote_token [String] Quote token to quote this message.
27
+ # @param mark_as_read_token [String,nil] Token used to mark the message as read.
26
28
  def initialize: (
27
29
  id: String,
28
30
  ?duration: Integer?,
29
31
  content_provider: ContentProvider| Hash[Symbol, untyped],
30
32
  quote_token: String,
33
+ ?mark_as_read_token: String?,
31
34
  **untyped dynamic_attributes
32
35
  ) -> void
33
36
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: line-bot-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - LINE Corporation
@@ -239,6 +239,7 @@ files:
239
239
  - lib/line/bot/v2/messaging_api/model/location_message.rb
240
240
  - lib/line/bot/v2/messaging_api/model/lottery_acquisition_condition_request.rb
241
241
  - lib/line/bot/v2/messaging_api/model/lottery_acquisition_condition_response.rb
242
+ - lib/line/bot/v2/messaging_api/model/mark_messages_as_read_by_token_request.rb
242
243
  - lib/line/bot/v2/messaging_api/model/mark_messages_as_read_request.rb
243
244
  - lib/line/bot/v2/messaging_api/model/members_ids_response.rb
244
245
  - lib/line/bot/v2/messaging_api/model/membership.rb
@@ -583,6 +584,7 @@ files:
583
584
  - sig/line/bot/v2/messaging_api/model/location_message.rbs
584
585
  - sig/line/bot/v2/messaging_api/model/lottery_acquisition_condition_request.rbs
585
586
  - sig/line/bot/v2/messaging_api/model/lottery_acquisition_condition_response.rbs
587
+ - sig/line/bot/v2/messaging_api/model/mark_messages_as_read_by_token_request.rbs
586
588
  - sig/line/bot/v2/messaging_api/model/mark_messages_as_read_request.rbs
587
589
  - sig/line/bot/v2/messaging_api/model/members_ids_response.rbs
588
590
  - sig/line/bot/v2/messaging_api/model/membership.rbs