@mtcute/core 0.9.2 → 0.10.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.
Files changed (35) hide show
  1. package/cjs/highlevel/client.d.ts +4 -2
  2. package/cjs/highlevel/client.js.map +1 -1
  3. package/cjs/highlevel/methods/chats/add-chat-members.d.ts +3 -1
  4. package/cjs/highlevel/methods/chats/add-chat-members.js +8 -4
  5. package/cjs/highlevel/methods/chats/add-chat-members.js.map +1 -1
  6. package/cjs/highlevel/methods/chats/create-group.d.ts +8 -1
  7. package/cjs/highlevel/methods/chats/create-group.js +7 -4
  8. package/cjs/highlevel/methods/chats/create-group.js.map +1 -1
  9. package/cjs/highlevel/methods.d.ts +1 -0
  10. package/cjs/highlevel/methods.js.map +1 -1
  11. package/cjs/highlevel/utils/entities.d.ts +19 -0
  12. package/cjs/highlevel/utils/entities.js +53 -0
  13. package/cjs/highlevel/utils/entities.js.map +1 -0
  14. package/cjs/highlevel/utils/index.d.ts +1 -0
  15. package/cjs/highlevel/utils/index.js +1 -0
  16. package/cjs/highlevel/utils/index.js.map +1 -1
  17. package/cjs/network/network-manager.js +1 -1
  18. package/esm/highlevel/client.d.ts +4 -2
  19. package/esm/highlevel/client.js.map +1 -1
  20. package/esm/highlevel/methods/chats/add-chat-members.d.ts +3 -1
  21. package/esm/highlevel/methods/chats/add-chat-members.js +8 -4
  22. package/esm/highlevel/methods/chats/add-chat-members.js.map +1 -1
  23. package/esm/highlevel/methods/chats/create-group.d.ts +8 -1
  24. package/esm/highlevel/methods/chats/create-group.js +7 -4
  25. package/esm/highlevel/methods/chats/create-group.js.map +1 -1
  26. package/esm/highlevel/methods.d.ts +1 -0
  27. package/esm/highlevel/methods.js.map +1 -1
  28. package/esm/highlevel/utils/entities.d.ts +19 -0
  29. package/esm/highlevel/utils/entities.js +49 -0
  30. package/esm/highlevel/utils/entities.js.map +1 -0
  31. package/esm/highlevel/utils/index.d.ts +1 -0
  32. package/esm/highlevel/utils/index.js +1 -0
  33. package/esm/highlevel/utils/index.js.map +1 -1
  34. package/esm/network/network-manager.js +1 -1
  35. package/package.json +4 -4
@@ -1,3 +1,4 @@
1
+ import { tl } from '@mtcute/tl';
1
2
  import { MaybeArray } from '../../../types/utils.js';
2
3
  import { ITelegramClient } from '../../client.types.js';
3
4
  import { InputPeerLike } from '../../types/index.js';
@@ -6,6 +7,7 @@ import { InputPeerLike } from '../../types/index.js';
6
7
  *
7
8
  * @param chatId ID of the chat or its username
8
9
  * @param users ID(s) of the user(s) to add
10
+ * @returns List of users that were failed to be invited (may be empty)
9
11
  */
10
12
  export declare function addChatMembers(client: ITelegramClient, chatId: InputPeerLike, users: MaybeArray<InputPeerLike>, params: {
11
13
  /**
@@ -15,4 +17,4 @@ export declare function addChatMembers(client: ITelegramClient, chatId: InputPee
15
17
  * @default 100
16
18
  */
17
19
  forwardCount?: number;
18
- }): Promise<void>;
20
+ }): Promise<tl.RawMissingInvitee[]>;
@@ -7,6 +7,7 @@ import { resolvePeerMany } from '../users/resolve-peer-many.js';
7
7
  *
8
8
  * @param chatId ID of the chat or its username
9
9
  * @param users ID(s) of the user(s) to add
10
+ * @returns List of users that were failed to be invited (may be empty)
10
11
  */
11
12
  export async function addChatMembers(client, chatId, users, params) {
12
13
  const { forwardCount = 100 } = params;
@@ -14,26 +15,29 @@ export async function addChatMembers(client, chatId, users, params) {
14
15
  if (!Array.isArray(users))
15
16
  users = [users];
16
17
  if (isInputPeerChat(chat)) {
18
+ const missing = [];
17
19
  for (const user of users) {
18
20
  const p = await resolveUser(client, user);
19
- const updates = await client.call({
21
+ const { updates, missingInvitees } = await client.call({
20
22
  _: 'messages.addChatUser',
21
23
  chatId: chat.chatId,
22
24
  userId: p,
23
25
  fwdLimit: forwardCount,
24
26
  });
25
27
  client.handleClientUpdate(updates);
28
+ missing.push(...missingInvitees);
26
29
  }
30
+ return missing;
27
31
  }
28
32
  else if (isInputPeerChannel(chat)) {
29
- const updates = await client.call({
33
+ const { updates, missingInvitees } = await client.call({
30
34
  _: 'channels.inviteToChannel',
31
35
  channel: toInputChannel(chat),
32
36
  users: await resolvePeerMany(client, users, toInputUser),
33
37
  });
34
38
  client.handleClientUpdate(updates);
39
+ return missingInvitees;
35
40
  }
36
- else
37
- throw new MtInvalidPeerTypeError(chatId, 'chat or channel');
41
+ throw new MtInvalidPeerTypeError(chatId, 'chat or channel');
38
42
  }
39
43
  //# sourceMappingURL=add-chat-members.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-chat-members.js","sourceRoot":"","sources":["../../../../../src/highlevel/methods/chats/add-chat-members.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAC5E,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5G,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAChC,MAAuB,EACvB,MAAqB,EACrB,KAAgC,EAChC,MAQC;IAED,MAAM,EAAE,YAAY,GAAG,GAAG,EAAE,GAAG,MAAM,CAAA;IAErC,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE9C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,KAAK,GAAG,CAAC,KAAK,CAAC,CAAA;IAE1C,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;QACvB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;YACtB,MAAM,CAAC,GAAG,MAAM,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;YAEzC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC;gBAC9B,CAAC,EAAE,sBAAsB;gBACzB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,MAAM,EAAE,CAAC;gBACT,QAAQ,EAAE,YAAY;aACzB,CAAC,CAAA;YACF,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAA;SACrC;KACJ;SAAM,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE;QACjC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC;YAC9B,CAAC,EAAE,0BAA0B;YAC7B,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC;YAC7B,KAAK,EAAE,MAAM,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC;SAC3D,CAAC,CAAA;QACF,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAA;KACrC;;QAAM,MAAM,IAAI,sBAAsB,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;AACtE,CAAC","sourcesContent":["import { MaybeArray } from '../../../types/utils.js'\nimport { ITelegramClient } from '../../client.types.js'\nimport { InputPeerLike, MtInvalidPeerTypeError } from '../../types/index.js'\nimport { isInputPeerChannel, isInputPeerChat, toInputChannel, toInputUser } from '../../utils/peer-utils.js'\nimport { resolvePeer, resolveUser } from '../users/resolve-peer.js'\nimport { resolvePeerMany } from '../users/resolve-peer-many.js'\n\n/**\n * Add one or more new members to a group, supergroup or channel.\n *\n * @param chatId ID of the chat or its username\n * @param users ID(s) of the user(s) to add\n */\nexport async function addChatMembers(\n client: ITelegramClient,\n chatId: InputPeerLike,\n users: MaybeArray<InputPeerLike>,\n params: {\n /**\n * Number of old messages to be forwarded (0-100).\n * Only applicable to legacy groups, ignored for supergroups and channels\n *\n * @default 100\n */\n forwardCount?: number\n },\n): Promise<void> {\n const { forwardCount = 100 } = params\n\n const chat = await resolvePeer(client, chatId)\n\n if (!Array.isArray(users)) users = [users]\n\n if (isInputPeerChat(chat)) {\n for (const user of users) {\n const p = await resolveUser(client, user)\n\n const updates = await client.call({\n _: 'messages.addChatUser',\n chatId: chat.chatId,\n userId: p,\n fwdLimit: forwardCount,\n })\n client.handleClientUpdate(updates)\n }\n } else if (isInputPeerChannel(chat)) {\n const updates = await client.call({\n _: 'channels.inviteToChannel',\n channel: toInputChannel(chat),\n users: await resolvePeerMany(client, users, toInputUser),\n })\n client.handleClientUpdate(updates)\n } else throw new MtInvalidPeerTypeError(chatId, 'chat or channel')\n}\n"]}
1
+ {"version":3,"file":"add-chat-members.js","sourceRoot":"","sources":["../../../../../src/highlevel/methods/chats/add-chat-members.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiB,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAC5E,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5G,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAChC,MAAuB,EACvB,MAAqB,EACrB,KAAgC,EAChC,MAQC;IAED,MAAM,EAAE,YAAY,GAAG,GAAG,EAAE,GAAG,MAAM,CAAA;IAErC,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE9C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,KAAK,GAAG,CAAC,KAAK,CAAC,CAAA;IAE1C,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;QACvB,MAAM,OAAO,GAA2B,EAAE,CAAA;QAE1C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;YACtB,MAAM,CAAC,GAAG,MAAM,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;YAEzC,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC;gBACnD,CAAC,EAAE,sBAAsB;gBACzB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,MAAM,EAAE,CAAC;gBACT,QAAQ,EAAE,YAAY;aACzB,CAAC,CAAA;YACF,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAA;YAClC,OAAO,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,CAAA;SACnC;QAED,OAAO,OAAO,CAAA;KACjB;SAAM,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE;QACjC,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC;YACnD,CAAC,EAAE,0BAA0B;YAC7B,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC;YAC7B,KAAK,EAAE,MAAM,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC;SAC3D,CAAC,CAAA;QACF,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAA;QAElC,OAAO,eAAe,CAAA;KACzB;IACD,MAAM,IAAI,sBAAsB,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;AAC/D,CAAC","sourcesContent":["import { tl } from '@mtcute/tl'\n\nimport { MaybeArray } from '../../../types/utils.js'\nimport { ITelegramClient } from '../../client.types.js'\nimport { InputPeerLike, MtInvalidPeerTypeError } from '../../types/index.js'\nimport { isInputPeerChannel, isInputPeerChat, toInputChannel, toInputUser } from '../../utils/peer-utils.js'\nimport { resolvePeer, resolveUser } from '../users/resolve-peer.js'\nimport { resolvePeerMany } from '../users/resolve-peer-many.js'\n\n/**\n * Add one or more new members to a group, supergroup or channel.\n *\n * @param chatId ID of the chat or its username\n * @param users ID(s) of the user(s) to add\n * @returns List of users that were failed to be invited (may be empty)\n */\nexport async function addChatMembers(\n client: ITelegramClient,\n chatId: InputPeerLike,\n users: MaybeArray<InputPeerLike>,\n params: {\n /**\n * Number of old messages to be forwarded (0-100).\n * Only applicable to legacy groups, ignored for supergroups and channels\n *\n * @default 100\n */\n forwardCount?: number\n },\n): Promise<tl.RawMissingInvitee[]> {\n const { forwardCount = 100 } = params\n\n const chat = await resolvePeer(client, chatId)\n\n if (!Array.isArray(users)) users = [users]\n\n if (isInputPeerChat(chat)) {\n const missing: tl.RawMissingInvitee[] = []\n\n for (const user of users) {\n const p = await resolveUser(client, user)\n\n const { updates, missingInvitees } = await client.call({\n _: 'messages.addChatUser',\n chatId: chat.chatId,\n userId: p,\n fwdLimit: forwardCount,\n })\n client.handleClientUpdate(updates)\n missing.push(...missingInvitees)\n }\n\n return missing\n } else if (isInputPeerChannel(chat)) {\n const { updates, missingInvitees } = await client.call({\n _: 'channels.inviteToChannel',\n channel: toInputChannel(chat),\n users: await resolvePeerMany(client, users, toInputUser),\n })\n client.handleClientUpdate(updates)\n\n return missingInvitees\n }\n throw new MtInvalidPeerTypeError(chatId, 'chat or channel')\n}\n"]}
@@ -1,6 +1,13 @@
1
+ import { tl } from '@mtcute/tl';
1
2
  import { MaybeArray } from '../../../types/utils.js';
2
3
  import { ITelegramClient } from '../../client.types.js';
3
4
  import { Chat, InputPeerLike } from '../../types/index.js';
5
+ export interface CreateGroupResult {
6
+ /** Chat that was created */
7
+ chat: Chat;
8
+ /** Users that were failed to be invited */
9
+ missing: tl.RawMissingInvitee[];
10
+ }
4
11
  /**
5
12
  * Create a legacy group chat
6
13
  *
@@ -23,4 +30,4 @@ export declare function createGroup(client: ITelegramClient, params: {
23
30
  * @default 0 (i.e. messages don't expire)
24
31
  */
25
32
  ttlPeriod?: number;
26
- }): Promise<Chat>;
33
+ }): Promise<CreateGroupResult>;
@@ -14,13 +14,16 @@ export async function createGroup(client, params) {
14
14
  if (!Array.isArray(users))
15
15
  users = [users];
16
16
  const peers = await resolvePeerMany(client, users, toInputUser);
17
- const res = await client.call({
17
+ const { updates, missingInvitees } = await client.call({
18
18
  _: 'messages.createChat',
19
19
  title,
20
20
  users: peers,
21
21
  });
22
- assertIsUpdatesGroup('messages.createChat', res);
23
- client.handleClientUpdate(res);
24
- return new Chat(res.chats[0]);
22
+ assertIsUpdatesGroup('messages.createChat', updates);
23
+ client.handleClientUpdate(updates);
24
+ return {
25
+ chat: new Chat(updates.chats[0]),
26
+ missing: missingInvitees,
27
+ };
25
28
  }
26
29
  //# sourceMappingURL=create-group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-group.js","sourceRoot":"","sources":["../../../../../src/highlevel/methods/chats/create-group.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAiB,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC7B,MAAuB,EACvB,MAkBC;IAED,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAA;IACxB,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,CAAA;IAEtB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,KAAK,GAAG,CAAC,KAAK,CAAC,CAAA;IAE1C,MAAM,KAAK,GAAG,MAAM,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC,CAAA;IAE/D,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC;QAC1B,CAAC,EAAE,qBAAqB;QACxB,KAAK;QACL,KAAK,EAAE,KAAK;KACf,CAAC,CAAA;IAEF,oBAAoB,CAAC,qBAAqB,EAAE,GAAG,CAAC,CAAA;IAEhD,MAAM,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAA;IAE9B,OAAO,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AACjC,CAAC","sourcesContent":["import { MaybeArray } from '../../../types/utils.js'\nimport { ITelegramClient } from '../../client.types.js'\nimport { Chat, InputPeerLike } from '../../types/index.js'\nimport { assertIsUpdatesGroup } from '../../updates/utils.js'\nimport { toInputUser } from '../../utils/peer-utils.js'\nimport { resolvePeerMany } from '../users/resolve-peer-many.js'\n\n/**\n * Create a legacy group chat\n *\n * If you want to create a supergroup, use {@link createSupergroup}\n * instead.\n */\nexport async function createGroup(\n client: ITelegramClient,\n params: {\n /**\n * Group title\n */\n title: string\n\n /**\n * User(s) to be invited in the group (ID(s), username(s) or phone number(s)).\n * Due to Telegram limitations, you can't create a legacy group with just yourself.\n */\n users: MaybeArray<InputPeerLike>\n\n /**\n * TTL period (in seconds) for the newly created chat\n *\n * @default 0 (i.e. messages don't expire)\n */\n ttlPeriod?: number\n },\n): Promise<Chat> {\n const { title } = params\n let { users } = params\n\n if (!Array.isArray(users)) users = [users]\n\n const peers = await resolvePeerMany(client, users, toInputUser)\n\n const res = await client.call({\n _: 'messages.createChat',\n title,\n users: peers,\n })\n\n assertIsUpdatesGroup('messages.createChat', res)\n\n client.handleClientUpdate(res)\n\n return new Chat(res.chats[0])\n}\n"]}
1
+ {"version":3,"file":"create-group.js","sourceRoot":"","sources":["../../../../../src/highlevel/methods/chats/create-group.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAiB,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAU/D;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC7B,MAAuB,EACvB,MAkBC;IAED,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAA;IACxB,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,CAAA;IAEtB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,KAAK,GAAG,CAAC,KAAK,CAAC,CAAA;IAE1C,MAAM,KAAK,GAAG,MAAM,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC,CAAA;IAE/D,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC;QACnD,CAAC,EAAE,qBAAqB;QACxB,KAAK;QACL,KAAK,EAAE,KAAK;KACf,CAAC,CAAA;IAEF,oBAAoB,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAA;IAEpD,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAA;IAElC,OAAO;QACH,IAAI,EAAE,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAChC,OAAO,EAAE,eAAe;KAC3B,CAAA;AACL,CAAC","sourcesContent":["import { tl } from '@mtcute/tl'\n\nimport { MaybeArray } from '../../../types/utils.js'\nimport { ITelegramClient } from '../../client.types.js'\nimport { Chat, InputPeerLike } from '../../types/index.js'\nimport { assertIsUpdatesGroup } from '../../updates/utils.js'\nimport { toInputUser } from '../../utils/peer-utils.js'\nimport { resolvePeerMany } from '../users/resolve-peer-many.js'\n\n// @exported\nexport interface CreateGroupResult {\n /** Chat that was created */\n chat: Chat\n /** Users that were failed to be invited */\n missing: tl.RawMissingInvitee[]\n}\n\n/**\n * Create a legacy group chat\n *\n * If you want to create a supergroup, use {@link createSupergroup}\n * instead.\n */\nexport async function createGroup(\n client: ITelegramClient,\n params: {\n /**\n * Group title\n */\n title: string\n\n /**\n * User(s) to be invited in the group (ID(s), username(s) or phone number(s)).\n * Due to Telegram limitations, you can't create a legacy group with just yourself.\n */\n users: MaybeArray<InputPeerLike>\n\n /**\n * TTL period (in seconds) for the newly created chat\n *\n * @default 0 (i.e. messages don't expire)\n */\n ttlPeriod?: number\n },\n): Promise<CreateGroupResult> {\n const { title } = params\n let { users } = params\n\n if (!Array.isArray(users)) users = [users]\n\n const peers = await resolvePeerMany(client, users, toInputUser)\n\n const { updates, missingInvitees } = await client.call({\n _: 'messages.createChat',\n title,\n users: peers,\n })\n\n assertIsUpdatesGroup('messages.createChat', updates)\n\n client.handleClientUpdate(updates)\n\n return {\n chat: new Chat(updates.chats[0]),\n missing: missingInvitees,\n }\n}\n"]}
@@ -31,6 +31,7 @@ export { addChatMembers } from './methods/chats/add-chat-members.js';
31
31
  export { archiveChats } from './methods/chats/archive-chats.js';
32
32
  export { banChatMember } from './methods/chats/ban-chat-member.js';
33
33
  export { createChannel } from './methods/chats/create-channel.js';
34
+ export type { CreateGroupResult } from './methods/chats/create-group.js';
34
35
  export { createGroup } from './methods/chats/create-group.js';
35
36
  export { createSupergroup } from './methods/chats/create-supergroup.js';
36
37
  export { deleteChannel } from './methods/chats/delete-channel.js';
@@ -1 +1 @@
1
- {"version":3,"file":"methods.js","sourceRoot":"","sources":["../../../src/highlevel/methods.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAA;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,m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O,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAA;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA","sourcesContent":["/* THIS FILE WAS AUTO-GENERATED */\nexport { checkPassword } from './methods/auth/check-password.js'\nexport { getPasswordHint } from './methods/auth/get-password-hint.js'\nexport { logOut } from './methods/auth/log-out.js'\nexport { recoverPassword } from './methods/auth/recover-password.js'\nexport { resendCode } from './methods/auth/resend-code.js'\nexport { run } from './methods/auth/run.js'\nexport { sendCode } from './methods/auth/send-code.js'\nexport { sendRecoveryCode } from './methods/auth/send-recovery-code.js'\nexport { signIn } from './methods/auth/sign-in.js'\nexport { signInBot } from './methods/auth/sign-in-bot.js'\nexport { start } from './methods/auth/start.js'\nexport { startTest } from './methods/auth/start-test.js'\nexport { isSelfPeer } from './methods/auth/utils.js'\nexport { answerCallbackQuery } from './methods/bots/answer-callback-query.js'\nexport { answerInlineQuery } from './methods/bots/answer-inline-query.js'\nexport { answerPreCheckoutQuery } from './methods/bots/answer-pre-checkout-query.js'\nexport { deleteMyCommands } from './methods/bots/delete-my-commands.js'\nexport { getBotInfo } from './methods/bots/get-bot-info.js'\nexport { getBotMenuButton } from './methods/bots/get-bot-menu-button.js'\nexport { getCallbackAnswer } from './methods/bots/get-callback-answer.js'\nexport { getGameHighScores } from './methods/bots/get-game-high-scores.js'\nexport { getInlineGameHighScores } from './methods/bots/get-game-high-scores.js'\nexport { getMyCommands } from './methods/bots/get-my-commands.js'\nexport { setBotInfo } from './methods/bots/set-bot-info.js'\nexport { setBotMenuButton } from './methods/bots/set-bot-menu-button.js'\nexport { setGameScore } from './methods/bots/set-game-score.js'\nexport { setInlineGameScore } from './methods/bots/set-game-score.js'\nexport { setMyCommands } from './methods/bots/set-my-commands.js'\nexport { setMyDefaultRights } from './methods/bots/set-my-default-rights.js'\nexport { addChatMembers } from './methods/chats/add-chat-members.js'\nexport { archiveChats } from './methods/chats/archive-chats.js'\nexport { banChatMember } from './methods/chats/ban-chat-member.js'\nexport { createChannel } from './methods/chats/create-channel.js'\nexport { createGroup } from './methods/chats/create-group.js'\nexport { createSupergroup } from './methods/chats/create-supergroup.js'\nexport { deleteChannel } from './methods/chats/delete-channel.js'\nexport { deleteChatPhoto } from './methods/chats/delete-chat-photo.js'\nexport { deleteGroup } from './methods/chats/delete-group.js'\nexport { deleteHistory } from './methods/chats/delete-history.js'\nexport { deleteUserHistory } from './methods/chats/delete-user-history.js'\nexport { editAdminRights } from './methods/chats/edit-admin-rights.js'\nexport { getChat } from './methods/chats/get-chat.js'\nexport { getChatEventLog } from './methods/chats/get-chat-event-log.js'\nexport { getChatMember } from './methods/chats/get-chat-member.js'\nexport { getChatMembers } from './methods/chats/get-chat-members.js'\nexport { getChatPreview } from './methods/chats/get-chat-preview.js'\nexport { getFullChat } from './methods/chats/get-full-chat.js'\nexport { getNearbyChats } from './methods/chats/get-nearby-chats.js'\nexport { getSimilarChannels } from './methods/chats/get-similar-channels.js'\nexport { iterChatEventLog } from './methods/chats/iter-chat-event-log.js'\nexport { iterChatMembers } from './methods/chats/iter-chat-members.js'\nexport { joinChat } from './methods/chats/join-chat.js'\nexport { kickChatMember } from './methods/chats/kick-chat-member.js'\nexport { leaveChat } from './methods/chats/leave-chat.js'\nexport { markChatUnread } from './methods/chats/mark-chat-unread.js'\nexport { openChat } from './methods/chats/open-chat.js'\nexport { closeChat } from './methods/chats/open-chat.js'\nexport { reorderUsernames } from './methods/chats/reorder-usernames.js'\nexport { restrictChatMember } from './methods/chats/restrict-chat-member.js'\nexport { saveDraft } from './methods/chats/save-draft.js'\nexport { setChatColor } from './methods/chats/set-chat-color.js'\nexport { setChatDefaultPermissions } from './methods/chats/set-chat-default-permissions.js'\nexport { setChatDescription } from './methods/chats/set-chat-description.js'\nexport { setChatPhoto } from './methods/chats/set-chat-photo.js'\nexport { setChatTitle } from './methods/chats/set-chat-title.js'\nexport { setChatTtl } from './methods/chats/set-chat-ttl.js'\nexport { setChatUsername } from './methods/chats/set-chat-username.js'\nexport { setSlowMode } from './methods/chats/set-slow-mode.js'\nexport { toggleContentProtection } from './methods/chats/toggle-content-protection.js'\nexport { toggleFragmentUsername } from './methods/chats/toggle-fragment-username.js'\nexport { toggleJoinRequests } from './methods/chats/toggle-join-requests.js'\nexport { toggleJoinToSend } from './methods/chats/toggle-join-to-send.js'\nexport { unarchiveChats } from './methods/chats/unarchive-chats.js'\nexport { unbanChatMember } from './methods/chats/unban-chat-member.js'\nexport { addContact } from './methods/contacts/add-contact.js'\nexport { deleteContacts } from './methods/contacts/delete-contacts.js'\nexport { getContacts } from './methods/contacts/get-contacts.js'\nexport { importContacts } from './methods/contacts/import-contacts.js'\nexport { createFolder } from './methods/dialogs/create-folder.js'\nexport { deleteFolder } from './methods/dialogs/delete-folder.js'\nexport { editFolder } from './methods/dialogs/edit-folder.js'\nexport { findFolder } from './methods/dialogs/find-folder.js'\nexport { getFolders } from './methods/dialogs/get-folders.js'\nexport { getPeerDialogs } from './methods/dialogs/get-peer-dialogs.js'\nexport { iterDialogs } from './methods/dialogs/iter-dialogs.js'\nexport { setFoldersOrder } from './methods/dialogs/set-folders-order.js'\nexport { downloadAsBuffer } from './methods/files/download-buffer.js'\nexport { downloadAsIterable } from './methods/files/download-iterable.js'\nexport { downloadAsStream } from './methods/files/download-stream.js'\nexport { _normalizeInputFile } from './methods/files/normalize-input-file.js'\nexport { _normalizeInputMedia } from './methods/files/normalize-input-media.js'\nexport { uploadFile } from './methods/files/upload-file.js'\nexport { uploadMedia } from './methods/files/upload-media.js'\nexport { createForumTopic } from './methods/forums/create-forum-topic.js'\nexport { deleteForumTopicHistory } from './methods/forums/delete-forum-topic-history.js'\nexport { editForumTopic } from './methods/forums/edit-forum-topic.js'\nexport type { GetForumTopicsOffset } from './methods/forums/get-forum-topics.js'\nexport { getForumTopics } from './methods/forums/get-forum-topics.js'\nexport { getForumTopicsById } from './methods/forums/get-forum-topics-by-id.js'\nexport { iterForumTopics } from './methods/forums/iter-forum-topics.js'\nexport { reorderPinnedForumTopics } from './methods/forums/reorder-pinned-forum-topics.js'\nexport { toggleForum } from './methods/forums/toggle-forum.js'\nexport { toggleForumTopicClosed } from './methods/forums/toggle-forum-topic-closed.js'\nexport { toggleForumTopicPinned } from './methods/forums/toggle-forum-topic-pinned.js'\nexport { toggleGeneralTopicHidden } from './methods/forums/toggle-general-topic-hidden.js'\nexport { createInviteLink } from './methods/invite-links/create-invite-link.js'\nexport { editInviteLink } from './methods/invite-links/edit-invite-link.js'\nexport { exportInviteLink } from './methods/invite-links/export-invite-link.js'\nexport { getInviteLink } from './methods/invite-links/get-invite-link.js'\nexport { getInviteLinkMembers } from './methods/invite-links/get-invite-link-members.js'\nexport type { GetInviteLinksOffset } from './methods/invite-links/get-invite-links.js'\nexport { getInviteLinks } from './methods/invite-links/get-invite-links.js'\nexport { getPrimaryInviteLink } from './methods/invite-links/get-primary-invite-link.js'\nexport { hideAllJoinRequests } from './methods/invite-links/hide-all-join-requests.js'\nexport { hideJoinRequest } from './methods/invite-links/hide-join-request.js'\nexport { iterInviteLinkMembers } from './methods/invite-links/iter-invite-link-members.js'\nexport { iterInviteLinks } from './methods/invite-links/iter-invite-links.js'\nexport { revokeInviteLink } from './methods/invite-links/revoke-invite-link.js'\nexport { closePoll } from './methods/messages/close-poll.js'\nexport type { DeleteMessagesParams } from './methods/messages/delete-messages.js'\nexport { deleteMessagesById } from './methods/messages/delete-messages.js'\nexport { deleteMessages } from './methods/messages/delete-messages.js'\nexport { deleteScheduledMessages } from './methods/messages/delete-scheduled-messages.js'\nexport { editInlineMessage } from './methods/messages/edit-inline-message.js'\nexport { editMessage } from './methods/messages/edit-message.js'\nexport type { ForwardMessageOptions } from './methods/messages/forward-messages.js'\nexport { forwardMessagesById } from './methods/messages/forward-messages.js'\nexport { forwardMessages } from './methods/messages/forward-messages.js'\nexport { getCallbackQueryMessage } from './methods/messages/get-callback-query-message.js'\nexport { getDiscussionMessage } from './methods/messages/get-discussion-message.js'\nexport type { GetHistoryOffset } from './methods/messages/get-history.js'\nexport { getHistory } from './methods/messages/get-history.js'\nexport { getMessageByLink } from './methods/messages/get-message-by-link.js'\nexport { getMessageGroup } from './methods/messages/get-message-group.js'\nexport { getMessageReactionsById } from './methods/messages/get-message-reactions.js'\nexport { getMessageReactions } from './methods/messages/get-message-reactions.js'\nexport { getMessages } from './methods/messages/get-messages.js'\nexport { getMessagesUnsafe } from './methods/messages/get-messages-unsafe.js'\nexport type { GetReactionUsersOffset } from './methods/messages/get-reaction-users.js'\nexport { getReactionUsers } from './methods/messages/get-reaction-users.js'\nexport { getReplyTo } from './methods/messages/get-reply-to.js'\nexport { getScheduledMessages } from './methods/messages/get-scheduled-messages.js'\nexport { iterHistory } from './methods/messages/iter-history.js'\nexport { iterReactionUsers } from './methods/messages/iter-reaction-users.js'\nexport { iterSearchGlobal } from './methods/messages/iter-search-global.js'\nexport { iterSearchMessages } from './methods/messages/iter-search-messages.js'\nexport { pinMessage } from './methods/messages/pin-message.js'\nexport { readHistory } from './methods/messages/read-history.js'\nexport { readReactions } from './methods/messages/read-reactions.js'\nexport type { SearchGlobalOffset } from './methods/messages/search-global.js'\nexport { searchGlobal } from './methods/messages/search-global.js'\nexport type { SearchMessagesOffset } from './methods/messages/search-messages.js'\nexport { searchMessages } from './methods/messages/search-messages.js'\nexport { answerText } from './methods/messages/send-answer.js'\nexport { answerMedia } from './methods/messages/send-answer.js'\nexport { answerMediaGroup } from './methods/messages/send-answer.js'\nexport { commentText } from './methods/messages/send-comment.js'\nexport { commentMedia } from './methods/messages/send-comment.js'\nexport { commentMediaGroup } from './methods/messages/send-comment.js'\nexport type { SendCopyParams } from './methods/messages/send-copy.js'\nexport { sendCopy } from './methods/messages/send-copy.js'\nexport type { SendCopyGroupParams } from './methods/messages/send-copy-group.js'\nexport { sendCopyGroup } from './methods/messages/send-copy-group.js'\nexport { sendMedia } from './methods/messages/send-media.js'\nexport { sendMediaGroup } from './methods/messages/send-media-group.js'\nexport type { QuoteParamsFrom } from './methods/messages/send-quote.js'\nexport { quoteWithText } from './methods/messages/send-quote.js'\nexport { quoteWithMedia } from './methods/messages/send-quote.js'\nexport { quoteWithMediaGroup } from './methods/messages/send-quote.js'\nexport { sendReaction } from './methods/messages/send-reaction.js'\nexport { replyText } from './methods/messages/send-reply.js'\nexport { replyMedia } from './methods/messages/send-reply.js'\nexport { replyMediaGroup } from './methods/messages/send-reply.js'\nexport { sendScheduled } from './methods/messages/send-scheduled.js'\nexport { sendText } from './methods/messages/send-text.js'\nexport { sendTyping } from './methods/messages/send-typing.js'\nexport { sendVote } from './methods/messages/send-vote.js'\nexport { translateMessage } from './methods/messages/translate-message.js'\nexport { translateText } from './methods/messages/translate-text.js'\nexport { unpinAllMessages } from './methods/messages/unpin-all-messages.js'\nexport { unpinMessage } from './methods/messages/unpin-message.js'\nexport { initTakeoutSession } from './methods/misc/init-takeout-session.js'\nexport { _normalizePrivacyRules } from './methods/misc/normalize-privacy-rules.js'\nexport { changeCloudPassword } from './methods/password/change-cloud-password.js'\nexport { enableCloudPassword } from './methods/password/enable-cloud-password.js'\nexport { verifyPasswordEmail } from './methods/password/password-email.js'\nexport { resendPasswordEmail } from './methods/password/password-email.js'\nexport { cancelPasswordEmail } from './methods/password/password-email.js'\nexport { removeCloudPassword } from './methods/password/remove-cloud-password.js'\nexport { applyBoost } from './methods/premium/apply-boost.js'\nexport type { CanApplyBoostResult } from './methods/premium/can-apply-boost.js'\nexport { canApplyBoost } from './methods/premium/can-apply-boost.js'\nexport { getBoostStats } from './methods/premium/get-boost-stats.js'\nexport { getBoosts } from './methods/premium/get-boosts.js'\nexport { getMyBoostSlots } from './methods/premium/get-my-boost-slots.js'\nexport { iterBoosters } from './methods/premium/iter-boosters.js'\nexport { addStickerToSet } from './methods/stickers/add-sticker-to-set.js'\nexport { createStickerSet } from './methods/stickers/create-sticker-set.js'\nexport { deleteStickerFromSet } from './methods/stickers/delete-sticker-from-set.js'\nexport { getCustomEmojis } from './methods/stickers/get-custom-emojis.js'\nexport { getCustomEmojisFromMessages } from './methods/stickers/get-custom-emojis.js'\nexport { getInstalledStickers } from './methods/stickers/get-installed-stickers.js'\nexport { getStickerSet } from './methods/stickers/get-sticker-set.js'\nexport { moveStickerInSet } from './methods/stickers/move-sticker-in-set.js'\nexport { setChatStickerSet } from './methods/stickers/set-chat-sticker-set.js'\nexport { setStickerSetThumb } from './methods/stickers/set-sticker-set-thumb.js'\nexport type { CanSendStoryResult } from './methods/stories/can-send-story.js'\nexport { canSendStory } from './methods/stories/can-send-story.js'\nexport { deleteStories } from './methods/stories/delete-stories.js'\nexport { editStory } from './methods/stories/edit-story.js'\nexport { getAllStories } from './methods/stories/get-all-stories.js'\nexport { getPeerStories } from './methods/stories/get-peer-stories.js'\nexport { getProfileStories } from './methods/stories/get-profile-stories.js'\nexport { getStoriesById } from './methods/stories/get-stories-by-id.js'\nexport { getStoriesInteractions } from './methods/stories/get-stories-interactions.js'\nexport { getStoryLink } from './methods/stories/get-story-link.js'\nexport { getStoryViewers } from './methods/stories/get-story-viewers.js'\nexport { hideMyStoriesViews } from './methods/stories/hide-my-stories-views.js'\nexport { incrementStoriesViews } from './methods/stories/increment-stories-views.js'\nexport { iterAllStories } from './methods/stories/iter-all-stories.js'\nexport { iterProfileStories } from './methods/stories/iter-profile-stories.js'\nexport { iterStoryViewers } from './methods/stories/iter-story-viewers.js'\nexport { readStories } from './methods/stories/read-stories.js'\nexport { reportStory } from './methods/stories/report-story.js'\nexport { sendStory } from './methods/stories/send-story.js'\nexport { sendStoryReaction } from './methods/stories/send-story-reaction.js'\nexport { togglePeerStoriesArchived } from './methods/stories/toggle-peer-stories-archived.js'\nexport { toggleStoriesPinned } from './methods/stories/toggle-stories-pinned.js'\nexport { blockUser } from './methods/users/block-user.js'\nexport { deleteProfilePhotos } from './methods/users/delete-profile-photos.js'\nexport { editCloseFriendsRaw } from './methods/users/edit-close-friends.js'\nexport { editCloseFriends } from './methods/users/edit-close-friends.js'\nexport { getCommonChats } from './methods/users/get-common-chats.js'\nexport { getGlobalTtl } from './methods/users/get-global-ttl.js'\nexport { getMe } from './methods/users/get-me.js'\nexport { getMyUsername } from './methods/users/get-my-username.js'\nexport { getProfilePhoto } from './methods/users/get-profile-photo.js'\nexport { getProfilePhotos } from './methods/users/get-profile-photos.js'\nexport { getUsers } from './methods/users/get-users.js'\nexport { iterProfilePhotos } from './methods/users/iter-profile-photos.js'\nexport { resolvePeer } from './methods/users/resolve-peer.js'\nexport { resolveUser } from './methods/users/resolve-peer.js'\nexport { resolveChannel } from './methods/users/resolve-peer.js'\nexport { resolvePeerMany } from './methods/users/resolve-peer-many.js'\nexport { setGlobalTtl } from './methods/users/set-global-ttl.js'\nexport { setMyEmojiStatus } from './methods/users/set-my-emoji-status.js'\nexport { setMyProfilePhoto } from './methods/users/set-my-profile-photo.js'\nexport { setMyUsername } from './methods/users/set-my-username.js'\nexport { setOffline } from './methods/users/set-offline.js'\nexport { unblockUser } from './methods/users/unblock-user.js'\nexport { updateProfile } from './methods/users/update-profile.js'\n"]}
1
+ {"version":3,"file":"methods.js","sourceRoot":"","sources":["../../../src/highlevel/methods.ts"],"names":[],"mappings":"AAAA,kCAAkC;A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AiC,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA","sourcesContent":["/* THIS FILE WAS AUTO-GENERATED */\nexport { checkPassword } from './methods/auth/check-password.js'\nexport { getPasswordHint } from './methods/auth/get-password-hint.js'\nexport { logOut } from './methods/auth/log-out.js'\nexport { recoverPassword } from './methods/auth/recover-password.js'\nexport { resendCode } from './methods/auth/resend-code.js'\nexport { run } from './methods/auth/run.js'\nexport { sendCode } from './methods/auth/send-code.js'\nexport { sendRecoveryCode } from './methods/auth/send-recovery-code.js'\nexport { signIn } from './methods/auth/sign-in.js'\nexport { signInBot } from './methods/auth/sign-in-bot.js'\nexport { start } from './methods/auth/start.js'\nexport { startTest } from './methods/auth/start-test.js'\nexport { isSelfPeer } from './methods/auth/utils.js'\nexport { answerCallbackQuery } from './methods/bots/answer-callback-query.js'\nexport { answerInlineQuery } from './methods/bots/answer-inline-query.js'\nexport { answerPreCheckoutQuery } from './methods/bots/answer-pre-checkout-query.js'\nexport { deleteMyCommands } from './methods/bots/delete-my-commands.js'\nexport { getBotInfo } from './methods/bots/get-bot-info.js'\nexport { getBotMenuButton } from './methods/bots/get-bot-menu-button.js'\nexport { getCallbackAnswer } from './methods/bots/get-callback-answer.js'\nexport { getGameHighScores } from './methods/bots/get-game-high-scores.js'\nexport { getInlineGameHighScores } from './methods/bots/get-game-high-scores.js'\nexport { getMyCommands } from './methods/bots/get-my-commands.js'\nexport { setBotInfo } from './methods/bots/set-bot-info.js'\nexport { setBotMenuButton } from './methods/bots/set-bot-menu-button.js'\nexport { setGameScore } from './methods/bots/set-game-score.js'\nexport { setInlineGameScore } from './methods/bots/set-game-score.js'\nexport { setMyCommands } from './methods/bots/set-my-commands.js'\nexport { setMyDefaultRights } from './methods/bots/set-my-default-rights.js'\nexport { addChatMembers } from './methods/chats/add-chat-members.js'\nexport { archiveChats } from './methods/chats/archive-chats.js'\nexport { banChatMember } from './methods/chats/ban-chat-member.js'\nexport { createChannel } from './methods/chats/create-channel.js'\nexport type { CreateGroupResult } from './methods/chats/create-group.js'\nexport { createGroup } from './methods/chats/create-group.js'\nexport { createSupergroup } from './methods/chats/create-supergroup.js'\nexport { deleteChannel } from './methods/chats/delete-channel.js'\nexport { deleteChatPhoto } from './methods/chats/delete-chat-photo.js'\nexport { deleteGroup } from './methods/chats/delete-group.js'\nexport { deleteHistory } from './methods/chats/delete-history.js'\nexport { deleteUserHistory } from './methods/chats/delete-user-history.js'\nexport { editAdminRights } from './methods/chats/edit-admin-rights.js'\nexport { getChat } from './methods/chats/get-chat.js'\nexport { getChatEventLog } from './methods/chats/get-chat-event-log.js'\nexport { getChatMember } from './methods/chats/get-chat-member.js'\nexport { getChatMembers } from './methods/chats/get-chat-members.js'\nexport { getChatPreview } from './methods/chats/get-chat-preview.js'\nexport { getFullChat } from './methods/chats/get-full-chat.js'\nexport { getNearbyChats } from './methods/chats/get-nearby-chats.js'\nexport { getSimilarChannels } from './methods/chats/get-similar-channels.js'\nexport { iterChatEventLog } from './methods/chats/iter-chat-event-log.js'\nexport { iterChatMembers } from './methods/chats/iter-chat-members.js'\nexport { joinChat } from './methods/chats/join-chat.js'\nexport { kickChatMember } from './methods/chats/kick-chat-member.js'\nexport { leaveChat } from './methods/chats/leave-chat.js'\nexport { markChatUnread } from './methods/chats/mark-chat-unread.js'\nexport { openChat } from './methods/chats/open-chat.js'\nexport { closeChat } from './methods/chats/open-chat.js'\nexport { reorderUsernames } from './methods/chats/reorder-usernames.js'\nexport { restrictChatMember } from './methods/chats/restrict-chat-member.js'\nexport { saveDraft } from './methods/chats/save-draft.js'\nexport { setChatColor } from './methods/chats/set-chat-color.js'\nexport { setChatDefaultPermissions } from './methods/chats/set-chat-default-permissions.js'\nexport { setChatDescription } from './methods/chats/set-chat-description.js'\nexport { setChatPhoto } from './methods/chats/set-chat-photo.js'\nexport { setChatTitle } from './methods/chats/set-chat-title.js'\nexport { setChatTtl } from './methods/chats/set-chat-ttl.js'\nexport { setChatUsername } from './methods/chats/set-chat-username.js'\nexport { setSlowMode } from './methods/chats/set-slow-mode.js'\nexport { toggleContentProtection } from './methods/chats/toggle-content-protection.js'\nexport { toggleFragmentUsername } from './methods/chats/toggle-fragment-username.js'\nexport { toggleJoinRequests } from './methods/chats/toggle-join-requests.js'\nexport { toggleJoinToSend } from './methods/chats/toggle-join-to-send.js'\nexport { unarchiveChats } from './methods/chats/unarchive-chats.js'\nexport { unbanChatMember } from './methods/chats/unban-chat-member.js'\nexport { addContact } from './methods/contacts/add-contact.js'\nexport { deleteContacts } from './methods/contacts/delete-contacts.js'\nexport { getContacts } from './methods/contacts/get-contacts.js'\nexport { importContacts } from './methods/contacts/import-contacts.js'\nexport { createFolder } from './methods/dialogs/create-folder.js'\nexport { deleteFolder } from './methods/dialogs/delete-folder.js'\nexport { editFolder } from './methods/dialogs/edit-folder.js'\nexport { findFolder } from './methods/dialogs/find-folder.js'\nexport { getFolders } from './methods/dialogs/get-folders.js'\nexport { getPeerDialogs } from './methods/dialogs/get-peer-dialogs.js'\nexport { iterDialogs } from './methods/dialogs/iter-dialogs.js'\nexport { setFoldersOrder } from './methods/dialogs/set-folders-order.js'\nexport { downloadAsBuffer } from './methods/files/download-buffer.js'\nexport { downloadAsIterable } from './methods/files/download-iterable.js'\nexport { downloadAsStream } from './methods/files/download-stream.js'\nexport { _normalizeInputFile } from './methods/files/normalize-input-file.js'\nexport { _normalizeInputMedia } from './methods/files/normalize-input-media.js'\nexport { uploadFile } from './methods/files/upload-file.js'\nexport { uploadMedia } from './methods/files/upload-media.js'\nexport { createForumTopic } from './methods/forums/create-forum-topic.js'\nexport { deleteForumTopicHistory } from './methods/forums/delete-forum-topic-history.js'\nexport { editForumTopic } from './methods/forums/edit-forum-topic.js'\nexport type { GetForumTopicsOffset } from './methods/forums/get-forum-topics.js'\nexport { getForumTopics } from './methods/forums/get-forum-topics.js'\nexport { getForumTopicsById } from './methods/forums/get-forum-topics-by-id.js'\nexport { iterForumTopics } from './methods/forums/iter-forum-topics.js'\nexport { reorderPinnedForumTopics } from './methods/forums/reorder-pinned-forum-topics.js'\nexport { toggleForum } from './methods/forums/toggle-forum.js'\nexport { toggleForumTopicClosed } from './methods/forums/toggle-forum-topic-closed.js'\nexport { toggleForumTopicPinned } from './methods/forums/toggle-forum-topic-pinned.js'\nexport { toggleGeneralTopicHidden } from './methods/forums/toggle-general-topic-hidden.js'\nexport { createInviteLink } from './methods/invite-links/create-invite-link.js'\nexport { editInviteLink } from './methods/invite-links/edit-invite-link.js'\nexport { exportInviteLink } from './methods/invite-links/export-invite-link.js'\nexport { getInviteLink } from './methods/invite-links/get-invite-link.js'\nexport { getInviteLinkMembers } from './methods/invite-links/get-invite-link-members.js'\nexport type { GetInviteLinksOffset } from './methods/invite-links/get-invite-links.js'\nexport { getInviteLinks } from './methods/invite-links/get-invite-links.js'\nexport { getPrimaryInviteLink } from './methods/invite-links/get-primary-invite-link.js'\nexport { hideAllJoinRequests } from './methods/invite-links/hide-all-join-requests.js'\nexport { hideJoinRequest } from './methods/invite-links/hide-join-request.js'\nexport { iterInviteLinkMembers } from './methods/invite-links/iter-invite-link-members.js'\nexport { iterInviteLinks } from './methods/invite-links/iter-invite-links.js'\nexport { revokeInviteLink } from './methods/invite-links/revoke-invite-link.js'\nexport { closePoll } from './methods/messages/close-poll.js'\nexport type { DeleteMessagesParams } from './methods/messages/delete-messages.js'\nexport { deleteMessagesById } from './methods/messages/delete-messages.js'\nexport { deleteMessages } from './methods/messages/delete-messages.js'\nexport { deleteScheduledMessages } from './methods/messages/delete-scheduled-messages.js'\nexport { editInlineMessage } from './methods/messages/edit-inline-message.js'\nexport { editMessage } from './methods/messages/edit-message.js'\nexport type { ForwardMessageOptions } from './methods/messages/forward-messages.js'\nexport { forwardMessagesById } from './methods/messages/forward-messages.js'\nexport { forwardMessages } from './methods/messages/forward-messages.js'\nexport { getCallbackQueryMessage } from './methods/messages/get-callback-query-message.js'\nexport { getDiscussionMessage } from './methods/messages/get-discussion-message.js'\nexport type { GetHistoryOffset } from './methods/messages/get-history.js'\nexport { getHistory } from './methods/messages/get-history.js'\nexport { getMessageByLink } from './methods/messages/get-message-by-link.js'\nexport { getMessageGroup } from './methods/messages/get-message-group.js'\nexport { getMessageReactionsById } from './methods/messages/get-message-reactions.js'\nexport { getMessageReactions } from './methods/messages/get-message-reactions.js'\nexport { getMessages } from './methods/messages/get-messages.js'\nexport { getMessagesUnsafe } from './methods/messages/get-messages-unsafe.js'\nexport type { GetReactionUsersOffset } from './methods/messages/get-reaction-users.js'\nexport { getReactionUsers } from './methods/messages/get-reaction-users.js'\nexport { getReplyTo } from './methods/messages/get-reply-to.js'\nexport { getScheduledMessages } from './methods/messages/get-scheduled-messages.js'\nexport { iterHistory } from './methods/messages/iter-history.js'\nexport { iterReactionUsers } from './methods/messages/iter-reaction-users.js'\nexport { iterSearchGlobal } from './methods/messages/iter-search-global.js'\nexport { iterSearchMessages } from './methods/messages/iter-search-messages.js'\nexport { pinMessage } from './methods/messages/pin-message.js'\nexport { readHistory } from './methods/messages/read-history.js'\nexport { readReactions } from './methods/messages/read-reactions.js'\nexport type { SearchGlobalOffset } from './methods/messages/search-global.js'\nexport { searchGlobal } from './methods/messages/search-global.js'\nexport type { SearchMessagesOffset } from './methods/messages/search-messages.js'\nexport { searchMessages } from './methods/messages/search-messages.js'\nexport { answerText } from './methods/messages/send-answer.js'\nexport { answerMedia } from './methods/messages/send-answer.js'\nexport { answerMediaGroup } from './methods/messages/send-answer.js'\nexport { commentText } from './methods/messages/send-comment.js'\nexport { commentMedia } from './methods/messages/send-comment.js'\nexport { commentMediaGroup } from './methods/messages/send-comment.js'\nexport type { SendCopyParams } from './methods/messages/send-copy.js'\nexport { sendCopy } from './methods/messages/send-copy.js'\nexport type { SendCopyGroupParams } from './methods/messages/send-copy-group.js'\nexport { sendCopyGroup } from './methods/messages/send-copy-group.js'\nexport { sendMedia } from './methods/messages/send-media.js'\nexport { sendMediaGroup } from './methods/messages/send-media-group.js'\nexport type { QuoteParamsFrom } from './methods/messages/send-quote.js'\nexport { quoteWithText } from './methods/messages/send-quote.js'\nexport { quoteWithMedia } from './methods/messages/send-quote.js'\nexport { quoteWithMediaGroup } from './methods/messages/send-quote.js'\nexport { sendReaction } from './methods/messages/send-reaction.js'\nexport { replyText } from './methods/messages/send-reply.js'\nexport { replyMedia } from './methods/messages/send-reply.js'\nexport { replyMediaGroup } from './methods/messages/send-reply.js'\nexport { sendScheduled } from './methods/messages/send-scheduled.js'\nexport { sendText } from './methods/messages/send-text.js'\nexport { sendTyping } from './methods/messages/send-typing.js'\nexport { sendVote } from './methods/messages/send-vote.js'\nexport { translateMessage } from './methods/messages/translate-message.js'\nexport { translateText } from './methods/messages/translate-text.js'\nexport { unpinAllMessages } from './methods/messages/unpin-all-messages.js'\nexport { unpinMessage } from './methods/messages/unpin-message.js'\nexport { initTakeoutSession } from './methods/misc/init-takeout-session.js'\nexport { _normalizePrivacyRules } from './methods/misc/normalize-privacy-rules.js'\nexport { changeCloudPassword } from './methods/password/change-cloud-password.js'\nexport { enableCloudPassword } from './methods/password/enable-cloud-password.js'\nexport { verifyPasswordEmail } from './methods/password/password-email.js'\nexport { resendPasswordEmail } from './methods/password/password-email.js'\nexport { cancelPasswordEmail } from './methods/password/password-email.js'\nexport { removeCloudPassword } from './methods/password/remove-cloud-password.js'\nexport { applyBoost } from './methods/premium/apply-boost.js'\nexport type { CanApplyBoostResult } from './methods/premium/can-apply-boost.js'\nexport { canApplyBoost } from './methods/premium/can-apply-boost.js'\nexport { getBoostStats } from './methods/premium/get-boost-stats.js'\nexport { getBoosts } from './methods/premium/get-boosts.js'\nexport { getMyBoostSlots } from './methods/premium/get-my-boost-slots.js'\nexport { iterBoosters } from './methods/premium/iter-boosters.js'\nexport { addStickerToSet } from './methods/stickers/add-sticker-to-set.js'\nexport { createStickerSet } from './methods/stickers/create-sticker-set.js'\nexport { deleteStickerFromSet } from './methods/stickers/delete-sticker-from-set.js'\nexport { getCustomEmojis } from './methods/stickers/get-custom-emojis.js'\nexport { getCustomEmojisFromMessages } from './methods/stickers/get-custom-emojis.js'\nexport { getInstalledStickers } from './methods/stickers/get-installed-stickers.js'\nexport { getStickerSet } from './methods/stickers/get-sticker-set.js'\nexport { moveStickerInSet } from './methods/stickers/move-sticker-in-set.js'\nexport { setChatStickerSet } from './methods/stickers/set-chat-sticker-set.js'\nexport { setStickerSetThumb } from './methods/stickers/set-sticker-set-thumb.js'\nexport type { CanSendStoryResult } from './methods/stories/can-send-story.js'\nexport { canSendStory } from './methods/stories/can-send-story.js'\nexport { deleteStories } from './methods/stories/delete-stories.js'\nexport { editStory } from './methods/stories/edit-story.js'\nexport { getAllStories } from './methods/stories/get-all-stories.js'\nexport { getPeerStories } from './methods/stories/get-peer-stories.js'\nexport { getProfileStories } from './methods/stories/get-profile-stories.js'\nexport { getStoriesById } from './methods/stories/get-stories-by-id.js'\nexport { getStoriesInteractions } from './methods/stories/get-stories-interactions.js'\nexport { getStoryLink } from './methods/stories/get-story-link.js'\nexport { getStoryViewers } from './methods/stories/get-story-viewers.js'\nexport { hideMyStoriesViews } from './methods/stories/hide-my-stories-views.js'\nexport { incrementStoriesViews } from './methods/stories/increment-stories-views.js'\nexport { iterAllStories } from './methods/stories/iter-all-stories.js'\nexport { iterProfileStories } from './methods/stories/iter-profile-stories.js'\nexport { iterStoryViewers } from './methods/stories/iter-story-viewers.js'\nexport { readStories } from './methods/stories/read-stories.js'\nexport { reportStory } from './methods/stories/report-story.js'\nexport { sendStory } from './methods/stories/send-story.js'\nexport { sendStoryReaction } from './methods/stories/send-story-reaction.js'\nexport { togglePeerStoriesArchived } from './methods/stories/toggle-peer-stories-archived.js'\nexport { toggleStoriesPinned } from './methods/stories/toggle-stories-pinned.js'\nexport { blockUser } from './methods/users/block-user.js'\nexport { deleteProfilePhotos } from './methods/users/delete-profile-photos.js'\nexport { editCloseFriendsRaw } from './methods/users/edit-close-friends.js'\nexport { editCloseFriends } from './methods/users/edit-close-friends.js'\nexport { getCommonChats } from './methods/users/get-common-chats.js'\nexport { getGlobalTtl } from './methods/users/get-global-ttl.js'\nexport { getMe } from './methods/users/get-me.js'\nexport { getMyUsername } from './methods/users/get-my-username.js'\nexport { getProfilePhoto } from './methods/users/get-profile-photo.js'\nexport { getProfilePhotos } from './methods/users/get-profile-photos.js'\nexport { getUsers } from './methods/users/get-users.js'\nexport { iterProfilePhotos } from './methods/users/iter-profile-photos.js'\nexport { resolvePeer } from './methods/users/resolve-peer.js'\nexport { resolveUser } from './methods/users/resolve-peer.js'\nexport { resolveChannel } from './methods/users/resolve-peer.js'\nexport { resolvePeerMany } from './methods/users/resolve-peer-many.js'\nexport { setGlobalTtl } from './methods/users/set-global-ttl.js'\nexport { setMyEmojiStatus } from './methods/users/set-my-emoji-status.js'\nexport { setMyProfilePhoto } from './methods/users/set-my-profile-photo.js'\nexport { setMyUsername } from './methods/users/set-my-username.js'\nexport { setOffline } from './methods/users/set-offline.js'\nexport { unblockUser } from './methods/users/unblock-user.js'\nexport { updateProfile } from './methods/users/update-profile.js'\n"]}
@@ -0,0 +1,19 @@
1
+ import { TextWithEntities } from '../types/misc/entities.js';
2
+ /**
3
+ * Join multiple text parts with entities into a single text with entities,
4
+ * adjusting the entities' offsets accordingly.
5
+ *
6
+ * @param parts List of text parts with entities
7
+ * @param delim Delimiter to insert between parts
8
+ * @returns A single text with entities
9
+ * @example
10
+ *
11
+ * ```ts
12
+ * const scoreboardText = joinTextWithEntities(
13
+ * apiResult.scoreboard.map((entry) => html`<b>${entry.name}</b>: ${entry.score}`),
14
+ * html`<br>`
15
+ * )
16
+ * await tg.sendText(chatId, html`<b>scoreboard:</b><br><br>${scoreboardText}`)
17
+ * ```
18
+ */
19
+ export declare function joinTextWithEntities(parts: (string | TextWithEntities)[], delim?: string | TextWithEntities): TextWithEntities;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Join multiple text parts with entities into a single text with entities,
3
+ * adjusting the entities' offsets accordingly.
4
+ *
5
+ * @param parts List of text parts with entities
6
+ * @param delim Delimiter to insert between parts
7
+ * @returns A single text with entities
8
+ * @example
9
+ *
10
+ * ```ts
11
+ * const scoreboardText = joinTextWithEntities(
12
+ * apiResult.scoreboard.map((entry) => html`<b>${entry.name}</b>: ${entry.score}`),
13
+ * html`<br>`
14
+ * )
15
+ * await tg.sendText(chatId, html`<b>scoreboard:</b><br><br>${scoreboardText}`)
16
+ * ```
17
+ */
18
+ export function joinTextWithEntities(parts, delim = '') {
19
+ const textParts = [];
20
+ const newEntities = [];
21
+ let position = 0;
22
+ if (typeof delim === 'string') {
23
+ delim = { text: delim };
24
+ }
25
+ const pushPart = (part) => {
26
+ textParts.push(part.text);
27
+ const entitiesOffset = position;
28
+ position += part.text.length;
29
+ if (part.entities) {
30
+ for (const entity of part.entities) {
31
+ newEntities.push({
32
+ ...entity,
33
+ offset: entity.offset + entitiesOffset,
34
+ });
35
+ }
36
+ }
37
+ };
38
+ for (const part of parts) {
39
+ if (position > 0) {
40
+ pushPart(delim);
41
+ }
42
+ pushPart(typeof part === 'string' ? { text: part } : part);
43
+ }
44
+ return {
45
+ text: textParts.join(''),
46
+ entities: newEntities,
47
+ };
48
+ }
49
+ //# sourceMappingURL=entities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entities.js","sourceRoot":"","sources":["../../../../src/highlevel/utils/entities.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,oBAAoB,CAChC,KAAoC,EACpC,QAAmC,EAAE;IAErC,MAAM,SAAS,GAAa,EAAE,CAAA;IAC9B,MAAM,WAAW,GAA2B,EAAE,CAAA;IAE9C,IAAI,QAAQ,GAAG,CAAC,CAAA;IAEhB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC3B,KAAK,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,CAAA;KAC1B;IAED,MAAM,QAAQ,GAAG,CAAC,IAAsB,EAAE,EAAE;QACxC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACzB,MAAM,cAAc,GAAG,QAAQ,CAAA;QAC/B,QAAQ,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAA;QAE5B,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,QAAQ,EAAE;gBAChC,WAAW,CAAC,IAAI,CAAC;oBACb,GAAG,MAAM;oBACT,MAAM,EAAE,MAAM,CAAC,MAAM,GAAG,cAAc;iBACzC,CAAC,CAAA;aACL;SACJ;IACL,CAAC,CAAA;IAED,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACtB,IAAI,QAAQ,GAAG,CAAC,EAAE;YACd,QAAQ,CAAC,KAAK,CAAC,CAAA;SAClB;QAED,QAAQ,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;KAC7D;IAED,OAAO;QACH,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;QACxB,QAAQ,EAAE,WAAW;KACxB,CAAA;AACL,CAAC","sourcesContent":["import { tl } from '@mtcute/tl'\n\nimport { TextWithEntities } from '../types/misc/entities.js'\n\n/**\n * Join multiple text parts with entities into a single text with entities,\n * adjusting the entities' offsets accordingly.\n *\n * @param parts List of text parts with entities\n * @param delim Delimiter to insert between parts\n * @returns A single text with entities\n * @example\n *\n * ```ts\n * const scoreboardText = joinTextWithEntities(\n * apiResult.scoreboard.map((entry) => html`<b>${entry.name}</b>: ${entry.score}`),\n * html`<br>`\n * )\n * await tg.sendText(chatId, html`<b>scoreboard:</b><br><br>${scoreboardText}`)\n * ```\n */\nexport function joinTextWithEntities(\n parts: (string | TextWithEntities)[],\n delim: string | TextWithEntities = '',\n): TextWithEntities {\n const textParts: string[] = []\n const newEntities: tl.TypeMessageEntity[] = []\n\n let position = 0\n\n if (typeof delim === 'string') {\n delim = { text: delim }\n }\n\n const pushPart = (part: TextWithEntities) => {\n textParts.push(part.text)\n const entitiesOffset = position\n position += part.text.length\n\n if (part.entities) {\n for (const entity of part.entities) {\n newEntities.push({\n ...entity,\n offset: entity.offset + entitiesOffset,\n })\n }\n }\n }\n\n for (const part of parts) {\n if (position > 0) {\n pushPart(delim)\n }\n\n pushPart(typeof part === 'string' ? { text: part } : part)\n }\n\n return {\n text: textParts.join(''),\n entities: newEntities,\n }\n}\n"]}
@@ -1,3 +1,4 @@
1
+ export * from './entities.js';
1
2
  export * from './file-utils.js';
2
3
  export * from './inline-utils.js';
3
4
  export * from './inspectable.js';
@@ -1,4 +1,5 @@
1
1
  // todo: merge this with the main utils dir?
2
+ export * from './entities.js';
2
3
  export * from './file-utils.js';
3
4
  export * from './inline-utils.js';
4
5
  export * from './inspectable.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/highlevel/utils/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAE5C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA","sourcesContent":["// todo: merge this with the main utils dir?\n\nexport * from './file-utils.js'\nexport * from './inline-utils.js'\nexport * from './inspectable.js'\nexport * from './misc-utils.js'\nexport * from './peer-utils.js'\nexport * from './rps-meter.js'\nexport * from './stream-utils.js'\nexport * from './string-session.js'\nexport * from './voice-utils.js'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/highlevel/utils/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAE5C,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA","sourcesContent":["// todo: merge this with the main utils dir?\n\nexport * from './entities.js'\nexport * from './file-utils.js'\nexport * from './inline-utils.js'\nexport * from './inspectable.js'\nexport * from './misc-utils.js'\nexport * from './peer-utils.js'\nexport * from './rps-meter.js'\nexport * from './stream-utils.js'\nexport * from './string-session.js'\nexport * from './voice-utils.js'\n"]}
@@ -229,7 +229,7 @@ export class NetworkManager {
229
229
  _: 'initConnection',
230
230
  deviceModel,
231
231
  systemVersion: '1.0',
232
- appVersion: '0.9.2',
232
+ appVersion: '0.10.1',
233
233
  systemLangCode: 'en',
234
234
  langPack: '',
235
235
  langCode: 'en',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtcute/core",
3
- "version": "0.9.2",
3
+ "version": "0.10.1",
4
4
  "description": "Type-safe library for MTProto (Telegram API)",
5
5
  "author": "alina sireneva <alina@tei.su>",
6
6
  "license": "MIT",
@@ -35,9 +35,9 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "@mtcute/tl": "^176.0.0",
39
- "@mtcute/tl-runtime": "^0.9.0",
40
- "@mtcute/file-id": "^0.9.0",
38
+ "@mtcute/tl": "^177.0.0",
39
+ "@mtcute/tl-runtime": "^0.10.0",
40
+ "@mtcute/file-id": "^0.10.0",
41
41
  "@types/events": "3.0.0",
42
42
  "events": "3.2.0",
43
43
  "long": "5.2.3"