@alemonjs/kook 2.1.0-alpha.0 → 2.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,7 +18,10 @@ yarn add @alemonjs/kook
18
18
  kook:
19
19
  # 令牌
20
20
  token: ''
21
- # 主人
21
+ # 使用 user_key
22
22
  master_key:
23
- - ''
23
+ - 'xxx'
24
+ # 使用 user_id
25
+ master_id:
26
+ - 'yyy'
24
27
  ```
package/lib/hook.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { EventKeys, Events } from 'alemonjs';
2
- import API from 'node-telegram-bot-api';
3
2
  import { EventData } from './sdk/typings.js';
3
+ import { KOOKAPI } from './sdk/api.js';
4
4
 
5
5
  type MAP = {
6
6
  'message.create': EventData;
@@ -33,6 +33,6 @@ declare const useValue: <T extends EventKeys>(event: Events[T]) => readonly [MAP
33
33
  * @param event
34
34
  * @returns
35
35
  */
36
- declare const useClient: <T extends EventKeys>(event: Events[T]) => readonly [API, MAP[T]];
36
+ declare const useClient: <T extends EventKeys>(event: Events[T]) => readonly [KOOKAPI, MAP[T]];
37
37
 
38
38
  export { useClient, useValue };
package/lib/hook.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createEventValue, useClient as useClient$1 } from 'alemonjs';
2
- import API from 'node-telegram-bot-api';
2
+ import { KOOKAPI } from './sdk/api.js';
3
3
 
4
4
  /**
5
5
  *
@@ -16,7 +16,7 @@ const useValue = (event) => {
16
16
  * @returns
17
17
  */
18
18
  const useClient = (event) => {
19
- const [client] = useClient$1(event, API);
19
+ const [client] = useClient$1(event, KOOKAPI);
20
20
  const value = createEventValue(event);
21
21
  return [client, value];
22
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alemonjs/kook",
3
- "version": "2.1.0-alpha.0",
3
+ "version": "2.1.0-alpha.1",
4
4
  "description": "kook platform connection",
5
5
  "author": "lemonade",
6
6
  "license": "MIT",