mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-19 01:45:45 +08:00
14 lines
359 B
Python
14 lines
359 B
Python
from typing import Optional
|
|
|
|
from pydantic import Field, BaseModel
|
|
|
|
|
|
# priority: alias > origin
|
|
class Config(BaseModel):
|
|
access_token: Optional[str] = Field(default=None,
|
|
alias="cqhttp_access_token")
|
|
secret: Optional[str] = Field(default=None, alias="cqhttp_secret")
|
|
|
|
class Config:
|
|
extra = "ignore"
|