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
2 changes: 1 addition & 1 deletion line-openapi
4 changes: 2 additions & 2 deletions linebot/v3/messaging/api/async_messaging_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4360,7 +4360,7 @@ def get_pnp_message_statistics(self, var_date : Annotated[constr(strict=True), F
def get_pnp_message_statistics(self, var_date : Annotated[constr(strict=True), Field(..., description="Date the message was sent Format: `yyyyMMdd` (Example:`20211231`) Time zone: UTC+9 ")], async_req: Optional[bool]=None, **kwargs) -> Union[NumberOfMessagesResponse, Awaitable[NumberOfMessagesResponse]]: # noqa: E501
"""get_pnp_message_statistics # noqa: E501

Get number of sent LINE notification messages  # noqa: E501
Get number of sent LINE notification messages # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down Expand Up @@ -4391,7 +4391,7 @@ def get_pnp_message_statistics(self, var_date : Annotated[constr(strict=True), F
def get_pnp_message_statistics_with_http_info(self, var_date : Annotated[constr(strict=True), Field(..., description="Date the message was sent Format: `yyyyMMdd` (Example:`20211231`) Time zone: UTC+9 ")], **kwargs) -> ApiResponse: # noqa: E501
"""get_pnp_message_statistics # noqa: E501

Get number of sent LINE notification messages  # noqa: E501
Get number of sent LINE notification messages # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down
14 changes: 7 additions & 7 deletions linebot/v3/messaging/api/async_messaging_api_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from pydantic.v1 import Field, StrictBytes, StrictStr

from typing import Optional, Union
from typing import Union

from linebot.v3.messaging.models.get_message_content_transcoding_response import GetMessageContentTranscodingResponse

Expand Down Expand Up @@ -697,15 +697,15 @@ def get_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr,
_request_auth=_params.get('_request_auth'))

@overload
async def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Optional[Union[StrictBytes, StrictStr]] = None, **kwargs) -> None: # noqa: E501
async def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Union[StrictBytes, StrictStr], **kwargs) -> None: # noqa: E501
...

@overload
def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Optional[Union[StrictBytes, StrictStr]] = None, async_req: Optional[bool]=True, **kwargs) -> None: # noqa: E501
def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Union[StrictBytes, StrictStr], async_req: Optional[bool]=True, **kwargs) -> None: # noqa: E501
...

@validate_arguments
def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Optional[Union[StrictBytes, StrictStr]] = None, async_req: Optional[bool]=None, **kwargs) -> Union[None, Awaitable[None]]: # noqa: E501
def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Union[StrictBytes, StrictStr], async_req: Optional[bool]=None, **kwargs) -> Union[None, Awaitable[None]]: # noqa: E501
"""set_rich_menu_image # noqa: E501

Upload rich menu image # noqa: E501
Expand All @@ -717,7 +717,7 @@ def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., des

:param rich_menu_id: The ID of the rich menu to attach the image to (required)
:type rich_menu_id: str
:param body:
:param body: (required)
:type body: bytearray
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand All @@ -738,7 +738,7 @@ def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., des
return self.set_rich_menu_image_with_http_info(rich_menu_id, body, **kwargs) # noqa: E501

@validate_arguments
def set_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Optional[Union[StrictBytes, StrictStr]] = None, **kwargs) -> ApiResponse: # noqa: E501
def set_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Union[StrictBytes, StrictStr], **kwargs) -> ApiResponse: # noqa: E501
"""set_rich_menu_image # noqa: E501

Upload rich menu image # noqa: E501
Expand All @@ -750,7 +750,7 @@ def set_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr,

:param rich_menu_id: The ID of the rich menu to attach the image to (required)
:type rich_menu_id: str
:param body:
:param body: (required)
:type body: bytearray
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand Down
4 changes: 2 additions & 2 deletions linebot/v3/messaging/api/messaging_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4070,7 +4070,7 @@ def get_number_of_sent_reply_messages_with_http_info(self, var_date : Annotated[
def get_pnp_message_statistics(self, var_date : Annotated[constr(strict=True), Field(..., description="Date the message was sent Format: `yyyyMMdd` (Example:`20211231`) Time zone: UTC+9 ")], **kwargs) -> NumberOfMessagesResponse: # noqa: E501
"""get_pnp_message_statistics # noqa: E501

Get number of sent LINE notification messages  # noqa: E501
Get number of sent LINE notification messages # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down Expand Up @@ -4099,7 +4099,7 @@ def get_pnp_message_statistics(self, var_date : Annotated[constr(strict=True), F
def get_pnp_message_statistics_with_http_info(self, var_date : Annotated[constr(strict=True), Field(..., description="Date the message was sent Format: `yyyyMMdd` (Example:`20211231`) Time zone: UTC+9 ")], **kwargs) -> ApiResponse: # noqa: E501
"""get_pnp_message_statistics # noqa: E501

Get number of sent LINE notification messages  # noqa: E501
Get number of sent LINE notification messages # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down
10 changes: 5 additions & 5 deletions linebot/v3/messaging/api/messaging_api_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

from pydantic.v1 import Field, StrictBytes, StrictStr

from typing import Optional, Union
from typing import Union

from linebot.v3.messaging.models.get_message_content_transcoding_response import GetMessageContentTranscodingResponse

Expand Down Expand Up @@ -655,7 +655,7 @@ def get_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr,
_request_auth=_params.get('_request_auth'))

@validate_arguments
def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Optional[Union[StrictBytes, StrictStr]] = None, **kwargs) -> None: # noqa: E501
def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Union[StrictBytes, StrictStr], **kwargs) -> None: # noqa: E501
"""set_rich_menu_image # noqa: E501

Upload rich menu image # noqa: E501
Expand All @@ -667,7 +667,7 @@ def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., des

:param rich_menu_id: The ID of the rich menu to attach the image to (required)
:type rich_menu_id: str
:param body:
:param body: (required)
:type body: bytearray
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand All @@ -686,7 +686,7 @@ def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., des
return self.set_rich_menu_image_with_http_info(rich_menu_id, body, **kwargs) # noqa: E501

@validate_arguments
def set_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Optional[Union[StrictBytes, StrictStr]] = None, **kwargs) -> ApiResponse: # noqa: E501
def set_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Union[StrictBytes, StrictStr], **kwargs) -> ApiResponse: # noqa: E501
"""set_rich_menu_image # noqa: E501

Upload rich menu image # noqa: E501
Expand All @@ -698,7 +698,7 @@ def set_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr,

:param rich_menu_id: The ID of the rich menu to attach the image to (required)
:type rich_menu_id: str
:param body:
:param body: (required)
:type body: bytearray
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand Down
2 changes: 1 addition & 1 deletion linebot/v3/messaging/docs/MessagingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2170,7 +2170,7 @@ Name | Type | Description | Notes



Get number of sent LINE notification messages 
Get number of sent LINE notification messages

### Example

Expand Down
8 changes: 4 additions & 4 deletions linebot/v3/messaging/docs/MessagingApiBlob.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **set_rich_menu_image**
> set_rich_menu_image(rich_menu_id, body=body)
> set_rich_menu_image(rich_menu_id, body)



Expand Down Expand Up @@ -346,10 +346,10 @@ with linebot.v3.messaging.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = linebot.v3.messaging.MessagingApiBlob(api_client)
rich_menu_id = 'rich_menu_id_example' # str | The ID of the rich menu to attach the image to
body = None # bytearray | (optional)
body = None # bytearray |

try:
api_instance.set_rich_menu_image(rich_menu_id, body=body)
api_instance.set_rich_menu_image(rich_menu_id, body)
except Exception as e:
print("Exception when calling MessagingApiBlob->set_rich_menu_image: %s\n" % e)
```
Expand All @@ -360,7 +360,7 @@ with linebot.v3.messaging.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**rich_menu_id** | **str**| The ID of the rich menu to attach the image to |
**body** | **bytearray**| | [optional]
**body** | **bytearray**| |

### Return type

Expand Down