Skip to content

Commit

Permalink
make webhook optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ychebyshev committed Jan 7, 2024
1 parent f4dd986 commit 1f40310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shvatka/tgbot/config/models/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class BotConfig:
superusers: list[int]
bot_api: BotApiConfig
telegraph_token: str
webhook: WebhookConfig
webhook: WebhookConfig | None = None

def create_session(self) -> AiohttpSession | None:
if self.bot_api.is_local:
Expand Down

0 comments on commit 1f40310

Please sign in to comment.