Skip to content

Commit e667247

Browse files
committed
Enhance SlackWebMessagingIntegration to accept additional keyword arguments in from_token method
1 parent fe93c6e commit e667247

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elementary/messages/messaging_integrations/slack_web.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ def __init__(
5454

5555
@classmethod
5656
def from_token(
57-
cls, token: str, tracking: Optional[Tracking] = None
57+
cls, token: str, tracking: Optional[Tracking] = None, **kwargs: Any
5858
) -> "SlackWebMessagingIntegration":
5959
client = WebClient(token=token)
6060
client.retry_handlers.append(RateLimitErrorRetryHandler(max_retry_count=5))
61-
return cls(client, tracking)
61+
return cls(client, tracking, **kwargs)
6262

6363
def parse_message_context(self, context: dict[str, Any]) -> SlackWebMessageContext:
6464
return SlackWebMessageContext(**context)

0 commit comments

Comments
 (0)