Skip to content

Commit

Permalink
🔖 version 0.1.3
Browse files Browse the repository at this point in the history
optional channel name
  • Loading branch information
RF-Tar-Railt committed Oct 8, 2023
1 parent 51ada25 commit a0e0f75
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nonebot/adapters/satori/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
from datetime import datetime
from typing import Any, Dict, List, Union, Literal, Optional

from pydantic import Field, BaseModel, validator, Extra, root_validator
from pydantic import Extra, Field, BaseModel, validator, root_validator

from .utils import Element, parse, log
from .utils import Element, log, parse


class ChannelType(IntEnum):
Expand Down Expand Up @@ -134,7 +134,6 @@ class InnerMessage(BaseModel, extra=Extra.allow):
created_at: Optional[datetime] = None
updated_at: Optional[datetime] = None


@root_validator(pre=True)
def ensure_content(cls, values):
if "content" in values:
Expand Down

0 comments on commit a0e0f75

Please sign in to comment.