feishu.py 600 B

123456789101112131415161718192021222324
  1. from pydantic_settings import BaseSettings, SettingsConfigDict
  2. class FeishuConfig(BaseSettings):
  3. """飞书配置"""
  4. app_id: str = ""
  5. app_secret: str = ""
  6. # Webhook URLs
  7. long_articles_bot: str = ""
  8. long_articles_bot_dev: str = ""
  9. long_articles_task_bot: str = ""
  10. outside_gzh_monitor_bot: str = ""
  11. server_account_publish_monitor_bot: str = ""
  12. cookie_monitor_bot: str = ""
  13. rank_monitor_bot: str = ""
  14. model_config = SettingsConfigDict(
  15. env_prefix="FEISHU_",
  16. env_file=".env",
  17. case_sensitive=False,
  18. extra="ignore",
  19. )