nonebot2/nonebot/adapters/cqhttp/config.py
2021-01-17 13:46:29 +08:00

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"