Skip to content

Commit

Permalink
fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
RLKRo committed Oct 23, 2024
1 parent 44bf144 commit 45df6cc
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions chatsky/messengers/telegram/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ class LongpollingInterface(_AbstractTelegramInterface):
"""

def __init__(
self, token: str, id: Optional[str] = None, attachments_directory: Optional[Path] = None, interval: int = 2, timeout: int = 20
self,
token: str,
id: Optional[str] = None,
attachments_directory: Optional[Path] = None,
interval: int = 2,
timeout: int = 20,
) -> None:
super().__init__(token, id, attachments_directory)
self.interval = interval
Expand All @@ -54,7 +59,12 @@ class WebhookInterface(_AbstractTelegramInterface):
"""

def __init__(
self, token: str, id: Optional[str] = None, attachments_directory: Optional[Path] = None, host: str = "localhost", port: int = 844
self,
token: str,
id: Optional[str] = None,
attachments_directory: Optional[Path] = None,
host: str = "localhost",
port: int = 844,
):
super().__init__(token, id, attachments_directory)
self.listen = host
Expand Down

0 comments on commit 45df6cc

Please sign in to comment.