Skip to content

Commit c675463

Browse files
Update message model:
* Update to model type str -> Union[str, list[str]]
1 parent 98b70b8 commit c675463

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solapi/model/message.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from datetime import datetime
22
from enum import Enum
3-
from typing import Any, Optional
3+
from typing import Any, Optional, Union
44

55
from pydantic import BaseModel, ConfigDict, Field
66
from pydantic.alias_generators import to_camel
@@ -60,7 +60,7 @@ class Message(BaseModel):
6060
from_: Optional[str] = Field(
6161
default=None, serialization_alias="from", validation_alias="from"
6262
)
63-
to: str
63+
to: Union[str, list[str]]
6464
text: Optional[str] = None
6565
image_id: Optional[str] = Field(
6666
default=None, serialization_alias="imageId", validation_alias="imageId"

0 commit comments

Comments
 (0)