@@ -653,7 +653,7 @@ <h2 id="args">Args</h2>
653653 )
654654 return self._server
655655
656- def web_app(self, path: str = "/slack/events") -> web.Application:
656+ def web_app(self, path: str = "/slack/events", port: int = 3000 ) -> web.Application:
657657 """Returns a `web.Application` instance for aiohttp-devtools users.
658658
659659 from slack_bolt.async_app import AsyncApp
@@ -671,8 +671,9 @@ <h2 id="args">Args</h2>
671671
672672 Args:
673673 path: The path to receive incoming requests from Slack
674+ port: The port to listen on (Default: 3000)
674675 """
675- return self.server(path=path).web_app
676+ return self.server(path=path, port=port ).web_app
676677
677678 def start(self, port: int = 3000, path: str = "/slack/events", host: Optional[str] = None) -> None:
678679 """Start a web server using AIOHTTP.
@@ -2968,7 +2969,7 @@ <h2 id="args">Args</h2>
29682969</ details >
29692970</ dd >
29702971< dt id ="slack_bolt.async_app.AsyncApp.web_app "> < code class ="name flex ">
2971- < span > def < span class ="ident "> web_app</ span > </ span > (< span > self, path: str = '/slack/events') ‑> aiohttp.web_app.Application</ span >
2972+ < span > def < span class ="ident "> web_app</ span > </ span > (< span > self, path: str = '/slack/events', port: int = 3000 ) ‑> aiohttp.web_app.Application</ span >
29722973</ code > </ dt >
29732974< dd >
29742975< div class ="desc "> < p > Returns a < code > web.Application</ code > instance for aiohttp-devtools users.</ p >
@@ -2989,12 +2990,14 @@ <h2 id="args">Args</h2>
29892990< dl >
29902991< dt > < strong > < code > path</ code > </ strong > </ dt >
29912992< dd > The path to receive incoming requests from Slack</ dd >
2993+ < dt > < strong > < code > port</ code > </ strong > </ dt >
2994+ < dd > The port to listen on (Default: 3000)</ dd >
29922995</ dl > </ div >
29932996< details class ="source ">
29942997< summary >
29952998< span > Expand source code</ span >
29962999</ summary >
2997- < pre > < code class ="python "> def web_app(self, path: str = "/slack/events") -> web.Application:
3000+ < pre > < code class ="python "> def web_app(self, path: str = "/slack/events", port: int = 3000 ) -> web.Application:
29983001 """Returns a `web.Application` instance for aiohttp-devtools users.
29993002
30003003 from slack_bolt.async_app import AsyncApp
@@ -3012,8 +3015,9 @@ <h2 id="args">Args</h2>
30123015
30133016 Args:
30143017 path: The path to receive incoming requests from Slack
3018+ port: The port to listen on (Default: 3000)
30153019 """
3016- return self.server(path=path).web_app</ code > </ pre >
3020+ return self.server(path=path, port=port ).web_app</ code > </ pre >
30173021</ details >
30183022</ dd >
30193023</ dl >
@@ -3387,7 +3391,7 @@ <h3>Inherited members</h3>
33873391</ dd >
33883392< dt id ="slack_bolt.async_app.AsyncBoltRequest "> < code class ="flex name class ">
33893393< span > class < span class ="ident "> AsyncBoltRequest</ span > </ span >
3390- < span > (</ span > < span > *, body: Union[str, dict], query: Union[str, Dict[str, str], Dict[str, Sequence[str]], ForwardRef(None)] = None, headers: Optional[Dict[str, Union[str, Sequence[str]]]] = None, context: Optional[Dict[str, str ]] = None, mode: str = 'http')</ span >
3394+ < span > (</ span > < span > *, body: Union[str, dict], query: Union[str, Dict[str, str], Dict[str, Sequence[str]], ForwardRef(None)] = None, headers: Optional[Dict[str, Union[str, Sequence[str]]]] = None, context: Optional[Dict[str, Any ]] = None, mode: str = 'http')</ span >
33913395</ code > </ dt >
33923396< dd >
33933397< div class ="desc "> < p > Request to a Bolt app.</ p >
@@ -3425,7 +3429,7 @@ <h2 id="args">Args</h2>
34253429 body: Union[str, dict],
34263430 query: Optional[Union[str, Dict[str, str], Dict[str, Sequence[str]]]] = None,
34273431 headers: Optional[Dict[str, Union[str, Sequence[str]]]] = None,
3428- context: Optional[Dict[str, str ]] = None,
3432+ context: Optional[Dict[str, Any ]] = None,
34293433 mode: str = "http", # either "http" or "socket_mode"
34303434 ):
34313435 """Request to a Bolt app.
@@ -3844,6 +3848,7 @@ <h2 id="returns">Returns</h2>
38443848 unfurl_links: Optional[bool] = None,
38453849 unfurl_media: Optional[bool] = None,
38463850 thread_ts: Optional[str] = None,
3851+ metadata: Optional[Dict[str, Any]] = None,
38473852 ) -> WebhookResponse:
38483853 if self.response_url is not None:
38493854 client = AsyncWebhookClient(
@@ -3863,6 +3868,7 @@ <h2 id="returns">Returns</h2>
38633868 unfurl_links=unfurl_links,
38643869 unfurl_media=unfurl_media,
38653870 thread_ts=thread_ts,
3871+ metadata=metadata,
38663872 )
38673873 return await client.send_dict(message)
38683874 elif isinstance(text_or_whole_response, dict):
0 commit comments