We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d6fc79 commit 1bf9ed6Copy full SHA for 1bf9ed6
1 file changed
docs/guide/typescript.md
@@ -58,19 +58,21 @@ there you go.
58
``` typescript
59
import {
60
// main APIs
61
- Client,
+ messagingApi,
62
middleware,
63
+
64
+ // webhook
65
+ webhook,
66
67
// exceptions
68
JSONParseError,
69
SignatureValidationFailed,
-
- // types
- TemplateMessage,
70
- WebhookEvent,
71
} from "@line/bot-sdk";
72
+// For example, you can use MessagingApiClient like this:
73
+const { MessagingApiClient } = messagingApi;
74
```
75
76
Message object and webhook event types can be also imported from `@line/bot-sdk`,
-e.g. `TemplateMessage` or `Event`. For declarations of the types, please
77
+e.g. `messagingApi.TemplateMessage` or `webhook.Event`. For declarations of the types, please
78
refer to [lib/](https://github.com/line/line-bot-sdk-nodejs/blob/master/lib/).
0 commit comments