Skip to content

Commit

Permalink
docs: fix broken link to the WebClient (#1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamBergamin authored Jan 10, 2025
1 parent 4fce092 commit 63598b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/basic/web-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ lang: en
slug: /concepts/web-api
---

You can call [any Web API method](https://api.slack.com/methods) using the [`WebClient`](https://tools.slack.dev/python-slack-sdk/basic_usage.html) provided to your Bolt app as either `app.client` or `client` in middleware/listener arguments (given that your app has the appropriate scopes). When you call one the client's methods, it returns a `SlackResponse` which contains the response from Slack.
You can call [any Web API method](https://api.slack.com/methods) using the [`WebClient`](https://tools.slack.dev/python-slack-sdk/web) provided to your Bolt app as either `app.client` or `client` in middleware/listener arguments (given that your app has the appropriate scopes). When you call one the client's methods, it returns a `SlackResponse` which contains the response from Slack.

The token used to initialize Bolt can be found in the `context` object, which is required to call most Web API methods.

Expand All @@ -25,4 +25,4 @@ def say_hello(client, message):
post_at=when_september_ends,
text="Summer has come and passed"
)
```
```

0 comments on commit 63598b0

Please sign in to comment.