Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions lib/line/bot/v2/messaging_api/api/messaging_api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>GET https://api.line.me/v2/bot/message/delivery/pnp</code>
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
#
Expand Down Expand Up @@ -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 <code>GET https://api.line.me/v2/bot/message/delivery/pnp</code>
# When you want to get HTTP status code or response headers, use {#get_pnp_message_statistics_with_http_info} instead of this.
#
Expand Down
2 changes: 1 addition & 1 deletion line-openapi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions sig/line/bot/v2/messaging_api/api/messaging_api_client.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>GET https://api.line.me/v2/bot/message/delivery/pnp</code>
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
#
Expand All @@ -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 <code>GET https://api.line.me/v2/bot/message/delivery/pnp</code>
# When you want to get HTTP status code or response headers, use {#get_pnp_message_statistics_with_http_info} instead of this.
#
Expand Down