diff --git a/lib/line/bot/v2/messaging_api/api/messaging_api_blob_client.rb b/lib/line/bot/v2/messaging_api/api/messaging_api_blob_client.rb index dca1b9fa..14aaae53 100644 --- a/lib/line/bot/v2/messaging_api/api/messaging_api_blob_client.rb +++ b/lib/line/bot/v2/messaging_api/api/messaging_api_blob_client.rb @@ -231,13 +231,13 @@ def get_rich_menu_image( # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase. # # @param rich_menu_id [String] The ID of the rich menu to attach the image to - # @param body [File, nil] + # @param body [File] # @see https://developers.line.biz/en/reference/messaging-api/#upload-rich-menu-image # @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200 # @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself. def set_rich_menu_image_with_http_info( # steep:ignore MethodBodyTypeMismatch rich_menu_id:, - body: nil + body: ) path = "/v2/bot/richmenu/{richMenuId}/content" .gsub(/{richMenuId}/, rich_menu_id.to_s) @@ -260,13 +260,13 @@ def set_rich_menu_image_with_http_info( # steep:ignore MethodBodyTypeMismatch # When you want to get HTTP status code or response headers, use {#set_rich_menu_image_with_http_info} instead of this. # # @param rich_menu_id [String] The ID of the rich menu to attach the image to - # @param body [File, nil] + # @param body [File] # @see https://developers.line.biz/en/reference/messaging-api/#upload-rich-menu-image # @return [String, nil] when HTTP status code is 200 # @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself. def set_rich_menu_image( rich_menu_id:, - body: nil + body: ) response_body, _status_code, _headers = set_rich_menu_image_with_http_info( rich_menu_id: rich_menu_id, 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 19380d82..771c517d 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 @@ -1570,7 +1570,7 @@ def get_number_of_sent_reply_messages( response_body end - # Get number of sent LINE notification messages  + # Get number of sent LINE notification messages # This requests to GET https://api.line.me/v2/bot/message/delivery/pnp # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase. # @@ -1604,7 +1604,7 @@ def get_pnp_message_statistics_with_http_info( # steep:ignore MethodBodyTypeMism end end - # Get number of sent LINE notification messages  + # Get number of sent LINE notification messages # This requests to GET https://api.line.me/v2/bot/message/delivery/pnp # When you want to get HTTP status code or response headers, use {#get_pnp_message_statistics_with_http_info} instead of this. # diff --git a/line-openapi b/line-openapi index 982bad2a..779d8ca9 160000 --- a/line-openapi +++ b/line-openapi @@ -1 +1 @@ -Subproject commit 982bad2af44827ee5586b28b6a3d7d573217632a +Subproject commit 779d8ca9e632452ceb4e387b59b7f993497f051c diff --git a/sig/line/bot/v2/messaging_api/api/messaging_api_blob_client.rbs b/sig/line/bot/v2/messaging_api/api/messaging_api_blob_client.rbs index c971f187..ccc27788 100644 --- a/sig/line/bot/v2/messaging_api/api/messaging_api_blob_client.rbs +++ b/sig/line/bot/v2/messaging_api/api/messaging_api_blob_client.rbs @@ -161,13 +161,13 @@ module Line # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase. # # @param rich_menu_id [String] The ID of the rich menu to attach the image to - # @param body [File, nil] + # @param body [File] # @see https://developers.line.biz/en/reference/messaging-api/#upload-rich-menu-image # @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200 # @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself. def set_rich_menu_image_with_http_info: ( rich_menu_id: String, - ?body: File? + body: File ) -> ( [String?, 200, Hash[untyped, untyped]] # when HTTP status code is 200 | [String?, Integer, Hash[untyped, untyped]] # otherwise @@ -178,13 +178,13 @@ module Line # When you want to get HTTP status code or response headers, use {#set_rich_menu_image_with_http_info} instead of this. # # @param rich_menu_id [String] The ID of the rich menu to attach the image to - # @param body [File, nil] + # @param body [File] # @see https://developers.line.biz/en/reference/messaging-api/#upload-rich-menu-image # @return [String, nil] when HTTP status code is 200 # @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself. def set_rich_menu_image: ( rich_menu_id: String, - ?body: File? + body: File ) -> ( String? # when HTTP status code is 200 | String? # otherwise 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 6fa6b04b..535c87ea 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 @@ -944,7 +944,7 @@ module Line | String? # otherwise ) - # Get number of sent LINE notification messages  + # Get number of sent LINE notification messages # This requests to GET https://api.line.me/v2/bot/message/delivery/pnp # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase. # @@ -959,7 +959,7 @@ module Line | [String?, Integer, Hash[untyped, untyped]] # otherwise ) - # Get number of sent LINE notification messages  + # Get number of sent LINE notification messages # This requests to GET https://api.line.me/v2/bot/message/delivery/pnp # When you want to get HTTP status code or response headers, use {#get_pnp_message_statistics_with_http_info} instead of this. #