nonebot2/nonebot/adapters/cqhttp/config.py

14 lines
359 B
Python
Raw Normal View History

from typing import Optional
2021-01-17 13:46:29 +08:00
from pydantic import Field, BaseModel
2021-01-17 13:46:29 +08:00
# 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"