@mtkruto/node 0.160.0 → 0.170.0
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/esm/0_deps.d.ts +1 -1
- package/esm/0_deps.d.ts.map +1 -1
- package/esm/0_deps.js +1 -1
- package/esm/2_tl.d.ts +1 -0
- package/esm/2_tl.d.ts.map +1 -1
- package/esm/2_tl.js +1 -0
- package/esm/3_types.d.ts +3 -0
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +3 -0
- package/esm/client/0_markdown.d.ts.map +1 -1
- package/esm/client/0_params.d.ts +38 -4
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_secret_chat_state.d.ts +86 -0
- package/esm/client/0_secret_chat_state.d.ts.map +1 -0
- package/esm/client/0_secret_chat_state.js +129 -0
- package/esm/client/0_storage_operations.d.ts +1 -0
- package/esm/client/0_storage_operations.d.ts.map +1 -1
- package/esm/client/0_storage_operations.js +3 -0
- package/esm/client/1_client_generic.d.ts +86 -15
- package/esm/client/1_client_generic.d.ts.map +1 -1
- package/esm/client/2_client_encrypted.js +6 -6
- package/esm/client/2_file_manager.d.ts.map +1 -1
- package/esm/client/2_file_manager.js +26 -3
- package/esm/client/3_account_manager.js +3 -3
- package/esm/client/3_filters.d.ts +16 -7
- package/esm/client/3_filters.d.ts.map +1 -1
- package/esm/client/3_message_manager.d.ts +59 -20
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +6 -0
- package/esm/client/3_secret_chat_manager.d.ts +26 -0
- package/esm/client/3_secret_chat_manager.d.ts.map +1 -0
- package/esm/client/3_secret_chat_manager.js +770 -0
- package/esm/client/4_chat_manager.d.ts +2 -0
- package/esm/client/4_chat_manager.d.ts.map +1 -1
- package/esm/client/4_chat_manager.js +12 -0
- package/esm/client/4_poll_manager.js +2 -2
- package/esm/client/6_client.d.ts +87 -16
- package/esm/client/6_client.d.ts.map +1 -1
- package/esm/client/6_client.js +118 -18
- package/esm/client/6_client_dispatcher.d.ts +86 -15
- package/esm/client/6_client_dispatcher.d.ts.map +1 -1
- package/esm/client/6_client_dispatcher.js +107 -15
- package/esm/session/2_session_encrypted.js +5 -5
- package/esm/tl/1_secret_chats_api.d.ts +637 -0
- package/esm/tl/1_secret_chats_api.d.ts.map +1 -0
- package/esm/tl/1_secret_chats_api.js +849 -0
- package/esm/tl/1_tl_reader.js +3 -3
- package/esm/tl/2_secret_chats.d.ts +33 -0
- package/esm/tl/2_secret_chats.d.ts.map +1 -0
- package/esm/tl/2_secret_chats.js +53 -0
- package/esm/types/0_report_reason.d.ts +10 -0
- package/esm/types/0_report_reason.d.ts.map +1 -1
- package/esm/types/0_secret_chat.d.ts +66 -0
- package/esm/types/0_secret_chat.d.ts.map +1 -0
- package/esm/types/0_secret_chat.js +30 -0
- package/esm/types/0_secret_message_entity.d.ts +115 -0
- package/esm/types/0_secret_message_entity.d.ts.map +1 -0
- package/esm/types/0_secret_message_entity.js +174 -0
- package/esm/types/1_chat_p.d.ts +3 -3
- package/esm/types/1_chat_p.d.ts.map +1 -1
- package/esm/types/1_input_poll_media.d.ts +2 -2
- package/esm/types/1_sticker.d.ts +2 -1
- package/esm/types/1_sticker.d.ts.map +1 -1
- package/esm/types/1_sticker.js +23 -1
- package/esm/types/1_story_report_result.d.ts +3 -0
- package/esm/types/1_story_report_result.d.ts.map +1 -1
- package/esm/types/2_inactive_chat.d.ts +1 -1
- package/esm/types/2_inactive_chat.d.ts.map +1 -1
- package/esm/types/2_message_entity.d.ts +0 -3
- package/esm/types/2_message_entity.d.ts.map +1 -1
- package/esm/types/2_secret_message.d.ts +184 -0
- package/esm/types/2_secret_message.d.ts.map +1 -0
- package/esm/types/2_secret_message.js +341 -0
- package/esm/types/2_user.d.ts +1 -1
- package/esm/types/2_user.d.ts.map +1 -1
- package/esm/types/3_input_media.d.ts +2 -2
- package/esm/types/4_gift.d.ts +2 -2
- package/esm/types/4_gift.d.ts.map +1 -1
- package/esm/types/9_message.d.ts +8 -60
- package/esm/types/9_message.d.ts.map +1 -1
- package/esm/types/9_message.js +1 -0
- package/esm/types/B_update.d.ts +32 -41
- package/esm/types/B_update.d.ts.map +1 -1
- package/package.json +1 -1
- package/script/0_deps.d.ts +1 -1
- package/script/0_deps.d.ts.map +1 -1
- package/script/0_deps.js +2 -1
- package/script/2_tl.d.ts +1 -0
- package/script/2_tl.d.ts.map +1 -1
- package/script/2_tl.js +2 -1
- package/script/3_types.d.ts +3 -0
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +3 -0
- package/script/client/0_markdown.d.ts.map +1 -1
- package/script/client/0_params.d.ts +38 -4
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_secret_chat_state.d.ts +86 -0
- package/script/client/0_secret_chat_state.d.ts.map +1 -0
- package/script/client/0_secret_chat_state.js +133 -0
- package/script/client/0_storage_operations.d.ts +1 -0
- package/script/client/0_storage_operations.d.ts.map +1 -1
- package/script/client/0_storage_operations.js +3 -0
- package/script/client/1_client_generic.d.ts +86 -15
- package/script/client/1_client_generic.d.ts.map +1 -1
- package/script/client/2_client_encrypted.js +6 -6
- package/script/client/2_file_manager.d.ts.map +1 -1
- package/script/client/2_file_manager.js +25 -2
- package/script/client/3_account_manager.js +3 -3
- package/script/client/3_filters.d.ts +16 -7
- package/script/client/3_filters.d.ts.map +1 -1
- package/script/client/3_message_manager.d.ts +59 -20
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +6 -0
- package/script/client/3_secret_chat_manager.d.ts +26 -0
- package/script/client/3_secret_chat_manager.d.ts.map +1 -0
- package/script/client/3_secret_chat_manager.js +807 -0
- package/script/client/4_chat_manager.d.ts +2 -0
- package/script/client/4_chat_manager.d.ts.map +1 -1
- package/script/client/4_chat_manager.js +12 -0
- package/script/client/4_poll_manager.js +2 -2
- package/script/client/6_client.d.ts +87 -16
- package/script/client/6_client.d.ts.map +1 -1
- package/script/client/6_client.js +118 -18
- package/script/client/6_client_dispatcher.d.ts +86 -15
- package/script/client/6_client_dispatcher.d.ts.map +1 -1
- package/script/client/6_client_dispatcher.js +107 -15
- package/script/session/2_session_encrypted.js +5 -5
- package/script/tl/1_secret_chats_api.d.ts +637 -0
- package/script/tl/1_secret_chats_api.d.ts.map +1 -0
- package/script/tl/1_secret_chats_api.js +852 -0
- package/script/tl/1_tl_reader.js +3 -3
- package/script/tl/2_secret_chats.d.ts +33 -0
- package/script/tl/2_secret_chats.d.ts.map +1 -0
- package/script/tl/2_secret_chats.js +78 -0
- package/script/types/0_report_reason.d.ts +10 -0
- package/script/types/0_report_reason.d.ts.map +1 -1
- package/script/types/0_secret_chat.d.ts +66 -0
- package/script/types/0_secret_chat.d.ts.map +1 -0
- package/script/types/0_secret_chat.js +33 -0
- package/script/types/0_secret_message_entity.d.ts +115 -0
- package/script/types/0_secret_message_entity.d.ts.map +1 -0
- package/script/types/0_secret_message_entity.js +179 -0
- package/script/types/1_chat_p.d.ts +3 -3
- package/script/types/1_chat_p.d.ts.map +1 -1
- package/script/types/1_input_poll_media.d.ts +2 -2
- package/script/types/1_sticker.d.ts +2 -1
- package/script/types/1_sticker.d.ts.map +1 -1
- package/script/types/1_sticker.js +23 -0
- package/script/types/1_story_report_result.d.ts +3 -0
- package/script/types/1_story_report_result.d.ts.map +1 -1
- package/script/types/2_inactive_chat.d.ts +1 -1
- package/script/types/2_inactive_chat.d.ts.map +1 -1
- package/script/types/2_message_entity.d.ts +0 -3
- package/script/types/2_message_entity.d.ts.map +1 -1
- package/script/types/2_secret_message.d.ts +184 -0
- package/script/types/2_secret_message.d.ts.map +1 -0
- package/script/types/2_secret_message.js +344 -0
- package/script/types/2_user.d.ts +1 -1
- package/script/types/2_user.d.ts.map +1 -1
- package/script/types/3_input_media.d.ts +2 -2
- package/script/types/4_gift.d.ts +2 -2
- package/script/types/4_gift.d.ts.map +1 -1
- package/script/types/9_message.d.ts +8 -60
- package/script/types/9_message.d.ts.map +1 -1
- package/script/types/9_message.js +1 -0
- package/script/types/B_update.d.ts +32 -41
- package/script/types/B_update.d.ts.map +1 -1
package/esm/tl/1_tl_reader.js
CHANGED
|
@@ -39,11 +39,11 @@ export class TLReader {
|
|
|
39
39
|
return buffer;
|
|
40
40
|
}
|
|
41
41
|
unread(count) {
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
42
|
+
const newOffset = this._buffer.byteOffset - count;
|
|
43
|
+
if (newOffset < 0) {
|
|
44
44
|
throw new TLError("No data has been read", this.#path);
|
|
45
45
|
}
|
|
46
|
-
this._buffer = new Uint8Array(this._buffer.buffer,
|
|
46
|
+
this._buffer = new Uint8Array(this._buffer.buffer, newOffset);
|
|
47
47
|
}
|
|
48
48
|
readInt24(isSigned = true) {
|
|
49
49
|
const buffer = this.read(24 / 8);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
+
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
4
|
+
*
|
|
5
|
+
* This file is part of MTKruto.
|
|
6
|
+
*
|
|
7
|
+
* This program is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This program is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
import { type AnyObject, type AnyType, type Enums, type Types } from "./1_secret_chats_api.js";
|
|
21
|
+
import { TLReader } from "./1_tl_reader.js";
|
|
22
|
+
export * from "./1_secret_chats_api.js";
|
|
23
|
+
export type DeserializedType = boolean | number | bigint | string | Uint8Array | AnyType | Array<DeserializedType>;
|
|
24
|
+
export declare function deserializeType<T extends (keyof Types) | "X" | string>(name: T, bufferOrReader: TLReader | Uint8Array): Promise<T extends keyof Types ? Types[T] : DeserializedType>;
|
|
25
|
+
export declare function serializeObject(object: AnyObject): Uint8Array<ArrayBuffer>;
|
|
26
|
+
export declare function isValidObject(object: any): object is AnyType;
|
|
27
|
+
export declare function assertIsValidObject(object: any): asserts object is AnyType;
|
|
28
|
+
export declare function is<S extends keyof Types>(name: S, value: unknown): value is S extends keyof Types ? Types[S] : never;
|
|
29
|
+
export declare function isOneOf<S extends keyof Types>(names: S[] | readonly S[], value: unknown): value is S extends keyof Types ? Types[S] : never;
|
|
30
|
+
export declare function isOfEnum<S extends keyof Enums>(name: S, value: unknown): value is Enums[S];
|
|
31
|
+
export declare function as<S extends keyof Types>(name: S, value: unknown): Types[S];
|
|
32
|
+
export declare function mustGetReturnType(name: string): string;
|
|
33
|
+
//# sourceMappingURL=2_secret_chats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"2_secret_chats.d.ts","sourceRoot":"","sources":["../../src/tl/2_secret_chats.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAU,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACvG,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAI5C,cAAc,yBAAyB,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAEnH,wBAAsB,eAAe,CAAC,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,GAAG,GAAG,GAAG,MAAM,EAA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avaScript library for building Telegram clients
|
|
3
|
+
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
4
|
+
*
|
|
5
|
+
* This file is part of MTKruto.
|
|
6
|
+
*
|
|
7
|
+
* This program is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This program is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
// deno-lint-ignore-file no-explicit-any
|
|
21
|
+
import { schema } from "./1_secret_chats_api.js";
|
|
22
|
+
import { TLReader } from "./1_tl_reader.js";
|
|
23
|
+
import { TLWriter } from "./1_tl_writer.js";
|
|
24
|
+
import { as as as_, assertIsValidObject as assertIsValidObject_, is as is_, isOfEnum as isOfEnum_, isOneOf as isOneOf_, isValidObject as isValidObject_, mustGetReturnType as mustGetReturnType_ } from "./1_utilities.js";
|
|
25
|
+
export * from "./1_secret_chats_api.js";
|
|
26
|
+
export async function deserializeType(name, bufferOrReader) {
|
|
27
|
+
const reader = bufferOrReader instanceof Uint8Array ? new TLReader(bufferOrReader) : bufferOrReader;
|
|
28
|
+
return await reader.readType(name, schema);
|
|
29
|
+
}
|
|
30
|
+
export function serializeObject(object) {
|
|
31
|
+
return new TLWriter().writeObject(object, schema).buffer;
|
|
32
|
+
}
|
|
33
|
+
export function isValidObject(object) {
|
|
34
|
+
return isValidObject_(object, schema);
|
|
35
|
+
}
|
|
36
|
+
export function assertIsValidObject(object) {
|
|
37
|
+
return assertIsValidObject_(object, schema);
|
|
38
|
+
}
|
|
39
|
+
export function is(name, value) {
|
|
40
|
+
return is_(name, value, schema);
|
|
41
|
+
}
|
|
42
|
+
export function isOneOf(names, value) {
|
|
43
|
+
return isOneOf_(names, value, schema);
|
|
44
|
+
}
|
|
45
|
+
export function isOfEnum(name, value) {
|
|
46
|
+
return isOfEnum_(name, value, schema);
|
|
47
|
+
}
|
|
48
|
+
export function as(name, value) {
|
|
49
|
+
return as_(name, value, schema);
|
|
50
|
+
}
|
|
51
|
+
export function mustGetReturnType(name) {
|
|
52
|
+
return mustGetReturnType_(name, schema);
|
|
53
|
+
}
|
|
@@ -18,33 +18,43 @@
|
|
|
18
18
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
20
|
import type { Api } from "../2_tl.js";
|
|
21
|
+
/** @unlisted */
|
|
21
22
|
export interface ReportReasonSpam {
|
|
22
23
|
type: "spam";
|
|
23
24
|
}
|
|
25
|
+
/** @unlisted */
|
|
24
26
|
export interface ReportReasonViolence {
|
|
25
27
|
type: "violence";
|
|
26
28
|
}
|
|
29
|
+
/** @unlisted */
|
|
27
30
|
export interface ReportReasonPornography {
|
|
28
31
|
type: "pornography";
|
|
29
32
|
}
|
|
33
|
+
/** @unlisted */
|
|
30
34
|
export interface ReportReasonChildAbuse {
|
|
31
35
|
type: "childAbuse";
|
|
32
36
|
}
|
|
37
|
+
/** @unlisted */
|
|
33
38
|
export interface ReportReasonOther {
|
|
34
39
|
type: "other";
|
|
35
40
|
}
|
|
41
|
+
/** @unlisted */
|
|
36
42
|
export interface ReportReasonCopyright {
|
|
37
43
|
type: "copyright";
|
|
38
44
|
}
|
|
45
|
+
/** @unlisted */
|
|
39
46
|
export interface ReportReasonLocationIrrelevant {
|
|
40
47
|
type: "locationIrrelevant";
|
|
41
48
|
}
|
|
49
|
+
/** @unlisted */
|
|
42
50
|
export interface ReportReasonFake {
|
|
43
51
|
type: "fake";
|
|
44
52
|
}
|
|
53
|
+
/** @unlisted */
|
|
45
54
|
export interface ReportReasonIllegalDrugs {
|
|
46
55
|
type: "illegalDrugs";
|
|
47
56
|
}
|
|
57
|
+
/** @unlisted */
|
|
48
58
|
export interface ReportReasonPersonalDetails {
|
|
49
59
|
type: "personalDetails";
|
|
50
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_report_reason.d.ts","sourceRoot":"","sources":["../../src/types/0_report_reason.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,cAAc,CAAC;CACtB;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,oBAAoB,GAAG,uBAAuB,GAAG,sBAAsB,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,8BAA8B,GAAG,gBAAgB,GAAG,wBAAwB,GAAG,2BAA2B,CAAC;AAE/Q,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,YAAY,GAAG,GAAG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 -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
+
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
4
|
+
*
|
|
5
|
+
* This file is part of MTKruto.
|
|
6
|
+
*
|
|
7
|
+
* This program is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This program is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
import { Api } from "../2_tl.js";
|
|
21
|
+
/**
|
|
22
|
+
* A pending secret chat.
|
|
23
|
+
* @unlisted
|
|
24
|
+
*/
|
|
25
|
+
export interface SecretChatPending {
|
|
26
|
+
type: "pending";
|
|
27
|
+
/** The identifier of the secret chat. */
|
|
28
|
+
id: number;
|
|
29
|
+
/** The identifier of the user with which the secret chat is made. */
|
|
30
|
+
userId: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A requested secret chat.
|
|
34
|
+
* @unlisted
|
|
35
|
+
*/
|
|
36
|
+
export interface SecretChatRequested {
|
|
37
|
+
type: "requested";
|
|
38
|
+
/** The identifier of the secret chat. */
|
|
39
|
+
id: number;
|
|
40
|
+
/** The identifier of the user with which the secret chat is made. */
|
|
41
|
+
userId: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* An active secret chat.
|
|
45
|
+
* @unlisted
|
|
46
|
+
*/
|
|
47
|
+
export interface SecretChatActive {
|
|
48
|
+
type: "active";
|
|
49
|
+
/** The identifier of the secret chat. */
|
|
50
|
+
id: number;
|
|
51
|
+
/** The identifier of the user with which the secret chat is made. */
|
|
52
|
+
userId: number;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* A discarded secret chat.
|
|
56
|
+
* @unlisted
|
|
57
|
+
*/
|
|
58
|
+
export interface SecretChatDiscarded {
|
|
59
|
+
type: "discarded";
|
|
60
|
+
/** The identifier of the secret chat. */
|
|
61
|
+
id: number;
|
|
62
|
+
}
|
|
63
|
+
/** Any type of secret chat. */
|
|
64
|
+
export type SecretChat = SecretChatPending | SecretChatRequested | SecretChatActive | SecretChatDiscarded;
|
|
65
|
+
export declare function constructSecretChat(ec: Api.EncryptedChat): SecretChat;
|
|
66
|
+
//# sourceMappingURL=0_secret_chat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"0_secret_chat.d.ts","sourceRoot":"","sources":["../../src/types/0_secret_chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,WAAW,CAAC;IAClB,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,QAAQ,CAAC;IACf,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,WAAW,CAAC;IAClB,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,+BAA+B;AAC/B,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;AAE1G,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,GAAG,CAAC,aAAa,GAAG,UAAU,CAWrE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
+
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
4
|
+
*
|
|
5
|
+
* This file is part of MTKruto.
|
|
6
|
+
*
|
|
7
|
+
* This program is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This program is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
import { Api } from "../2_tl.js";
|
|
21
|
+
export function constructSecretChat(ec) {
|
|
22
|
+
if (Api.isOneOf(["encryptedChatEmpty", "encryptedChatDiscarded"], ec)) {
|
|
23
|
+
return { type: "discarded", id: ec.id };
|
|
24
|
+
}
|
|
25
|
+
const userId = Number(ec.participant_id);
|
|
26
|
+
if (Api.is("encryptedChatRequested", ec)) {
|
|
27
|
+
return { type: "requested", id: ec.id, userId };
|
|
28
|
+
}
|
|
29
|
+
return { type: Api.is("encryptedChat", ec) ? "active" : "pending", id: ec.id, userId };
|
|
30
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
+
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
4
|
+
*
|
|
5
|
+
* This file is part of MTKruto.
|
|
6
|
+
*
|
|
7
|
+
* This program is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This program is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
import { SecretChats } from "../2_tl.js";
|
|
21
|
+
/** @unlisted */
|
|
22
|
+
export interface _SecretMessageEntityBase {
|
|
23
|
+
offset: number;
|
|
24
|
+
length: number;
|
|
25
|
+
}
|
|
26
|
+
/** @unlisted */
|
|
27
|
+
export interface SecretMessageEntityMention extends _SecretMessageEntityBase {
|
|
28
|
+
type: "mention";
|
|
29
|
+
}
|
|
30
|
+
/** @unlisted */
|
|
31
|
+
export interface SecretMessageEntityHashtag extends _SecretMessageEntityBase {
|
|
32
|
+
type: "hashtag";
|
|
33
|
+
}
|
|
34
|
+
/** @unlisted */
|
|
35
|
+
export interface SecretMessageEntityBotCommand extends _SecretMessageEntityBase {
|
|
36
|
+
type: "botCommand";
|
|
37
|
+
}
|
|
38
|
+
/** @unlisted */
|
|
39
|
+
export interface SecretMessageEntityURL extends _SecretMessageEntityBase {
|
|
40
|
+
type: "url";
|
|
41
|
+
}
|
|
42
|
+
/** @unlisted */
|
|
43
|
+
export interface SecretMessageEntityEmailAddress extends _SecretMessageEntityBase {
|
|
44
|
+
type: "email";
|
|
45
|
+
}
|
|
46
|
+
/** @unlisted */
|
|
47
|
+
export interface SecretMessageEntityBold extends _SecretMessageEntityBase {
|
|
48
|
+
type: "bold";
|
|
49
|
+
}
|
|
50
|
+
/** @unlisted */
|
|
51
|
+
export interface SecretMessageEntityItalic extends _SecretMessageEntityBase {
|
|
52
|
+
type: "italic";
|
|
53
|
+
}
|
|
54
|
+
/** @unlisted */
|
|
55
|
+
export interface SecretMessageEntityPre extends _SecretMessageEntityBase {
|
|
56
|
+
type: "pre";
|
|
57
|
+
/** The language identifier of the code. */
|
|
58
|
+
language: string;
|
|
59
|
+
}
|
|
60
|
+
/** @unlisted */
|
|
61
|
+
export interface SecretMessageEntityCode extends _SecretMessageEntityBase {
|
|
62
|
+
type: "code";
|
|
63
|
+
}
|
|
64
|
+
/** @unlisted */
|
|
65
|
+
export interface SecretMessageEntityTextLink extends _SecretMessageEntityBase {
|
|
66
|
+
type: "textLink";
|
|
67
|
+
/** A URL that will be opened after the text is tapped. */
|
|
68
|
+
url: string;
|
|
69
|
+
}
|
|
70
|
+
/** @unlisted */
|
|
71
|
+
export interface SecretMessageEntityTextMention extends _SecretMessageEntityBase {
|
|
72
|
+
type: "textMention";
|
|
73
|
+
/** The identifier of the user to mention. */
|
|
74
|
+
userId: number;
|
|
75
|
+
}
|
|
76
|
+
/** @unlisted */
|
|
77
|
+
export interface SecretMessageEntityCashtag extends _SecretMessageEntityBase {
|
|
78
|
+
type: "cashtag";
|
|
79
|
+
}
|
|
80
|
+
/** @unlisted */
|
|
81
|
+
export interface SecretMessageEntityPhoneNumber extends _SecretMessageEntityBase {
|
|
82
|
+
type: "phoneNumber";
|
|
83
|
+
}
|
|
84
|
+
/** @unlisted */
|
|
85
|
+
export interface SecretMessageEntityUnderline extends _SecretMessageEntityBase {
|
|
86
|
+
type: "underline";
|
|
87
|
+
}
|
|
88
|
+
/** @unlisted */
|
|
89
|
+
export interface SecretMessageEntityStrikethrough extends _SecretMessageEntityBase {
|
|
90
|
+
type: "strikethrough";
|
|
91
|
+
}
|
|
92
|
+
/** @unlisted */
|
|
93
|
+
export interface SecretMessageEntityBlockquote extends _SecretMessageEntityBase {
|
|
94
|
+
type: "blockquote";
|
|
95
|
+
}
|
|
96
|
+
/** @unlisted */
|
|
97
|
+
export interface SecretMessageEntityBankCard extends _SecretMessageEntityBase {
|
|
98
|
+
type: "bankCard";
|
|
99
|
+
}
|
|
100
|
+
/** @unlisted */
|
|
101
|
+
export interface SecretMessageEntitySpoiler extends _SecretMessageEntityBase {
|
|
102
|
+
type: "spoiler";
|
|
103
|
+
}
|
|
104
|
+
/** @unlisted */
|
|
105
|
+
export interface SecretMessageEntityCustomEmoji extends _SecretMessageEntityBase {
|
|
106
|
+
type: "customEmoji";
|
|
107
|
+
/** The identifier of the custom emoji. */
|
|
108
|
+
customEmojiId: string;
|
|
109
|
+
}
|
|
110
|
+
/** Any type of secret message entity. */
|
|
111
|
+
export type SecretMessageEntity = SecretMessageEntityMention | SecretMessageEntityHashtag | SecretMessageEntityBotCommand | SecretMessageEntityURL | SecretMessageEntityEmailAddress | SecretMessageEntityBold | SecretMessageEntityItalic | SecretMessageEntityCode | SecretMessageEntityPre | SecretMessageEntityTextLink | SecretMessageEntityTextMention | SecretMessageEntityCashtag | SecretMessageEntityPhoneNumber | SecretMessageEntityUnderline | SecretMessageEntityStrikethrough | SecretMessageEntityBlockquote | SecretMessageEntityBankCard | SecretMessageEntitySpoiler | SecretMessageEntityCustomEmoji;
|
|
112
|
+
export declare function constructSecretMessageEntity(obj: SecretChats.MessageEntity): SecretMessageEntity | null;
|
|
113
|
+
export declare function secretMessageEntityToTlObject(entity: SecretMessageEntity): SecretChats.MessageEntity;
|
|
114
|
+
export declare function sortSecretMessageEntities(entities: SecretMessageEntity[]): SecretMessageEntity[];
|
|
115
|
+
//# sourceMappingURL=0_secret_message_entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"0_secret_message_entity.d.ts","sourceRoot":"","sources":["../../src/types/0_secret_message_entity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,gBAAgB;AAChB,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,gBAAgB;AAChB,MAAM,WAAW,0BAA2B,SAAQ,wBAAwB;IAC1E,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,gBAAgB;AAChB,MAAM,WAAW,0BAA2B,SAAQ,wBAAwB;IAC1E,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,gBAAgB;AAChB,MAAM,WAAW,6BAA8B,SAAQ,wBAAwB;IAC7E,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,gBAAgB;AAChB,MAAM,WAAW,sBAAuB,SAAQ,wBAAwB;IACtE,IAAI,EAAE,KAAK,CAAC;CACb;AAED,gBAAgB;AAChB,MAAM,WAAW,+BAAgC,SAAQ,wBAAwB;IAC/E,IAAI,EAAE,OAAO,CAAC;CACf;AAED,gBAAgB;AAChB,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;IACvE,IAAI,EAAE,MAAM,CAAC;CACd;AAED,gBAAgB;AAChB,MAAM,WAAW,yBAA0B,SAAQ,wBAAwB;IACzE,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,gBAAgB;AAChB,MAAM,WAAW,sBAAuB,SAAQ,wBAAwB;IACtE,IAAI,EAAE,KAAK,CAAC;IACZ,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,gBAAgB;AAChB,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;IACvE,IAAI,EAAE,MAAM,CAAC;CACd;AAED,gBAAgB;AA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2B,GAC3B,8BAA8B,GAC9B,0BAA0B,GAC1B,8BAA8B,GAC9B,4BAA4B,GAC5B,gCAAgC,GAChC,6BAA6B,GAC7B,2BAA2B,GAC3B,0BAA0B,GAC1B,8BAA8B,CAAC;AAEnC,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,WAAW,CAAC,aAAa,GAAG,mBAAmB,GAAG,IAAI,CA0CvG;AAED,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,mBAAmB,GAAG,WAAW,CAAC,aAAa,CAuDpG;AAuBD,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,mBAAmB,EAAE,GAAG,mBAAmB,EAAE,CAYhG"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
+
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
4
|
+
*
|
|
5
|
+
* This file is part of MTKruto.
|
|
6
|
+
*
|
|
7
|
+
* This program is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This program is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
import { cleanObject } from "../1_utilities.js";
|
|
21
|
+
import { SecretChats } from "../2_tl.js";
|
|
22
|
+
export function constructSecretMessageEntity(obj) {
|
|
23
|
+
if (SecretChats.is("messageEntityMention", obj)) {
|
|
24
|
+
return { type: "mention", offset: obj.offset, length: obj.length };
|
|
25
|
+
}
|
|
26
|
+
else if (SecretChats.is("messageEntityHashtag", obj)) {
|
|
27
|
+
return { type: "hashtag", offset: obj.offset, length: obj.length };
|
|
28
|
+
}
|
|
29
|
+
else if (SecretChats.is("messageEntityBotCommand", obj)) {
|
|
30
|
+
return { type: "botCommand", offset: obj.offset ?? 0, length: obj.length };
|
|
31
|
+
}
|
|
32
|
+
else if (SecretChats.is("messageEntityUrl", obj)) {
|
|
33
|
+
return { type: "url", offset: obj.offset, length: obj.length };
|
|
34
|
+
}
|
|
35
|
+
else if (SecretChats.is("messageEntityEmail", obj)) {
|
|
36
|
+
return { type: "email", offset: obj.offset, length: obj.length };
|
|
37
|
+
}
|
|
38
|
+
else if (SecretChats.is("messageEntityBold", obj)) {
|
|
39
|
+
return { type: "bold", offset: obj.offset, length: obj.length };
|
|
40
|
+
}
|
|
41
|
+
else if (SecretChats.is("messageEntityItalic", obj)) {
|
|
42
|
+
return { type: "italic", offset: obj.offset, length: obj.length };
|
|
43
|
+
}
|
|
44
|
+
else if (SecretChats.is("messageEntityCode", obj)) {
|
|
45
|
+
return { type: "code", offset: obj.offset, length: obj.length };
|
|
46
|
+
}
|
|
47
|
+
else if (SecretChats.is("messageEntityPre", obj)) {
|
|
48
|
+
return { type: "pre", offset: obj.offset, length: obj.length, language: obj.language };
|
|
49
|
+
}
|
|
50
|
+
else if (SecretChats.is("messageEntityTextUrl", obj)) {
|
|
51
|
+
return { type: "textLink", offset: obj.offset, length: obj.length, url: obj.url };
|
|
52
|
+
}
|
|
53
|
+
else if (SecretChats.is("messageEntityMentionName", obj)) {
|
|
54
|
+
return { type: "textMention", offset: obj.offset, length: obj.length, userId: Number(obj.user_id) };
|
|
55
|
+
}
|
|
56
|
+
else if (SecretChats.is("messageEntityCashtag", obj)) {
|
|
57
|
+
return { type: "cashtag", offset: obj.offset, length: obj.length };
|
|
58
|
+
}
|
|
59
|
+
else if (SecretChats.is("messageEntityPhone", obj)) {
|
|
60
|
+
return { type: "phoneNumber", offset: obj.offset, length: obj.length };
|
|
61
|
+
}
|
|
62
|
+
else if (SecretChats.is("messageEntityUnderline", obj)) {
|
|
63
|
+
return { type: "underline", offset: obj.offset, length: obj.length };
|
|
64
|
+
}
|
|
65
|
+
else if (SecretChats.is("messageEntityStrike", obj)) {
|
|
66
|
+
return { type: "strikethrough", offset: obj.offset, length: obj.length };
|
|
67
|
+
}
|
|
68
|
+
else if (SecretChats.is("messageEntityBlockquote", obj)) {
|
|
69
|
+
return cleanObject({ type: "blockquote", offset: obj.offset, length: obj.length });
|
|
70
|
+
}
|
|
71
|
+
else if (SecretChats.is("messageEntityBankCard", obj)) {
|
|
72
|
+
return { type: "bankCard", offset: obj.offset, length: obj.length };
|
|
73
|
+
}
|
|
74
|
+
else if (SecretChats.is("messageEntitySpoiler", obj)) {
|
|
75
|
+
return { type: "spoiler", offset: obj.offset, length: obj.length };
|
|
76
|
+
}
|
|
77
|
+
else if (SecretChats.is("messageEntityCustomEmoji", obj)) {
|
|
78
|
+
return { type: "customEmoji", offset: obj.offset, length: obj.length, customEmojiId: String(obj.document_id) };
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
export function secretMessageEntityToTlObject(entity) {
|
|
85
|
+
const { offset, length } = entity;
|
|
86
|
+
switch (entity.type) {
|
|
87
|
+
case "mention":
|
|
88
|
+
return { _: "messageEntityMention", offset, length };
|
|
89
|
+
case "hashtag":
|
|
90
|
+
return { _: "messageEntityHashtag", offset, length };
|
|
91
|
+
case "botCommand":
|
|
92
|
+
return { _: "messageEntityBotCommand", offset, length };
|
|
93
|
+
case "url":
|
|
94
|
+
return { _: "messageEntityUrl", offset, length };
|
|
95
|
+
case "email":
|
|
96
|
+
return { _: "messageEntityEmail", offset, length };
|
|
97
|
+
case "bold":
|
|
98
|
+
return { _: "messageEntityBold", offset, length };
|
|
99
|
+
case "italic":
|
|
100
|
+
return { _: "messageEntityItalic", offset, length };
|
|
101
|
+
case "code":
|
|
102
|
+
return { _: "messageEntityCode", offset, length };
|
|
103
|
+
case "pre":
|
|
104
|
+
return { _: "messageEntityPre", offset, length, language: entity.language };
|
|
105
|
+
case "textLink": {
|
|
106
|
+
try {
|
|
107
|
+
const url = new URL(entity.url);
|
|
108
|
+
if (url.protocol === "tg:" && url.hostname === "user" && (url.pathname === "/" || url.pathname === "")) {
|
|
109
|
+
const id = Number(url.searchParams.get("id"));
|
|
110
|
+
if (!isNaN(id)) {
|
|
111
|
+
return { _: "messageEntityMentionName", offset, length, user_id: id };
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
catch {
|
|
116
|
+
//
|
|
117
|
+
}
|
|
118
|
+
return { _: "messageEntityTextUrl", offset, length, url: entity.url };
|
|
119
|
+
}
|
|
120
|
+
case "textMention": {
|
|
121
|
+
return { _: "messageEntityMentionName", offset, length, user_id: entity.userId };
|
|
122
|
+
}
|
|
123
|
+
case "cashtag":
|
|
124
|
+
return { _: "messageEntityCashtag", offset, length };
|
|
125
|
+
case "phoneNumber":
|
|
126
|
+
return { _: "messageEntityPhone", offset, length };
|
|
127
|
+
case "underline":
|
|
128
|
+
return { _: "messageEntityUnderline", offset, length };
|
|
129
|
+
case "strikethrough":
|
|
130
|
+
return { _: "messageEntityStrike", offset, length };
|
|
131
|
+
case "blockquote":
|
|
132
|
+
return { _: "messageEntityBlockquote", offset, length };
|
|
133
|
+
case "bankCard":
|
|
134
|
+
return { _: "messageEntityBankCard", offset, length };
|
|
135
|
+
case "spoiler":
|
|
136
|
+
return { _: "messageEntitySpoiler", offset, length };
|
|
137
|
+
case "customEmoji":
|
|
138
|
+
return { _: "messageEntityCustomEmoji", offset, length, document_id: BigInt(entity.customEmojiId) };
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
const priorities = {
|
|
142
|
+
"mention": 50,
|
|
143
|
+
"hashtag": 50,
|
|
144
|
+
"botCommand": 50,
|
|
145
|
+
"url": 50,
|
|
146
|
+
"email": 50,
|
|
147
|
+
"bold": 90,
|
|
148
|
+
"italic": 91,
|
|
149
|
+
"code": 20,
|
|
150
|
+
"pre": 11,
|
|
151
|
+
"textLink": 49,
|
|
152
|
+
"textMention": 49,
|
|
153
|
+
"cashtag": 50,
|
|
154
|
+
"phoneNumber": 50,
|
|
155
|
+
"underline": 92,
|
|
156
|
+
"strikethrough": 93,
|
|
157
|
+
"blockquote": 0,
|
|
158
|
+
"bankCard": 50,
|
|
159
|
+
"spoiler": 94,
|
|
160
|
+
"customEmoji": 99,
|
|
161
|
+
};
|
|
162
|
+
export function sortSecretMessageEntities(entities) {
|
|
163
|
+
return entities.sort(({ offset, type, length }, other) => {
|
|
164
|
+
if (offset !== other.offset) {
|
|
165
|
+
return offset < other.offset ? -1 : 1;
|
|
166
|
+
}
|
|
167
|
+
if (length !== other.length) {
|
|
168
|
+
return length > other.length ? -1 : 1;
|
|
169
|
+
}
|
|
170
|
+
const priority = priorities[type];
|
|
171
|
+
const otherPriority = priorities[other.type];
|
|
172
|
+
return priority < otherPriority ? -1 : 1;
|
|
173
|
+
});
|
|
174
|
+
}
|
package/esm/types/1_chat_p.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface ChatPPrivate extends _ChatPBase {
|
|
|
66
66
|
isCloseFriend: boolean;
|
|
67
67
|
/** The user's [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag). */
|
|
68
68
|
languageCode?: string;
|
|
69
|
-
/** Whether the user has been identified as scam. */
|
|
69
|
+
/** Whether the user has been identified as a scam. */
|
|
70
70
|
isScam: boolean;
|
|
71
71
|
/** Whether the user has been identified as an impersonator. */
|
|
72
72
|
isFake: boolean;
|
|
@@ -82,7 +82,7 @@ export interface ChatPPrivate extends _ChatPBase {
|
|
|
82
82
|
restrictionReason?: RestrictionReason[];
|
|
83
83
|
/** Whether the user is a bot that has been added to the attachment menu by the current user. */
|
|
84
84
|
isAddedToAttachmentsMenu?: boolean;
|
|
85
|
-
/** Whether the user is a bot that has
|
|
85
|
+
/** Whether the user is a bot that has a main mini app. */
|
|
86
86
|
hasMainMiniApp?: boolean;
|
|
87
87
|
/** Whether the user is a bot that supports guest queries. */
|
|
88
88
|
isGuestQuerySupported?: boolean;
|
|
@@ -103,7 +103,7 @@ export interface ChatPChannelBase extends _ChatPBase {
|
|
|
103
103
|
username?: string;
|
|
104
104
|
/** The chat or channel's additional usernames. */
|
|
105
105
|
also?: string[];
|
|
106
|
-
/** Whether the chat or channel has been identified as scam. */
|
|
106
|
+
/** Whether the chat or channel has been identified as a scam. */
|
|
107
107
|
isScam: boolean;
|
|
108
108
|
/** Whether the chat or channel has been identified as an impersonator. */
|
|
109
109
|
isFake: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1_chat_p.d.ts","sourceRoot":"","sources":["../../src/types/1_chat_p.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,KAAK,SAAS,EAAsB,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAA8B,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE1E,gBAAgB;AAChB,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,OAAO,GACP,YAAY,GACZ,SAAS,CAAC;AAEd,gBAAgB;AAChB,MAAM,WAAW,UAAU;IACzB,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,4BAA4B;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,gBAAgB;AAChB,MAAM,WAAW,YAAa,SAAQ,UAA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,GAAG,YAAY,GAAG,UAAU,GAAG,eAAe,GAAG,YAAY,CAAC;AAE/E,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,GAAG,YAAY,CAAC;AAC7D,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,aAAa,GAAG,UAAU,CAAC;AAC/E,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,gBAAgB,GAAG,eAAe,GAAG,YAAY,CAAC;AACzG,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC;AA0HjE,gBAAgB;AAChB,MAAM,WAAW,UAAU;IACzB,CAAC,IAAI,EAAE,GAAG,CAAC,QAAQ,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACpD,CAAC,IAAI,EAAE,GAAG,CAAC,QAAQ,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAClD,CAAC,IAAI,EAAE,GAAG,CAAC,WAAW,GAAG,CAAC,YAAY,GAAG,eAAe,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACzE,CAAC,IAAI,EAAE,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,WAAW,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAC/E;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,YAAY,CAE/D"}
|
|
@@ -66,9 +66,9 @@ export interface InputPollMediaVideo extends _InputPollOptionMediaCommon {
|
|
|
66
66
|
thumbnail?: FileSource;
|
|
67
67
|
/** The duration of the video in seconds. */
|
|
68
68
|
duration?: number;
|
|
69
|
-
/** The width of the
|
|
69
|
+
/** The width of the video in pixels. */
|
|
70
70
|
width?: number;
|
|
71
|
-
/** The height of the
|
|
71
|
+
/** The height of the video in pixels. */
|
|
72
72
|
height?: number;
|
|
73
73
|
/** Whether the video is suitable for streaming. */
|
|
74
74
|
supportsStreaming?: boolean;
|
package/esm/types/1_sticker.d.ts
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
20
|
import { type MaybePromise } from "../1_utilities.js";
|
|
21
|
-
import { Api } from "../2_tl.js";
|
|
21
|
+
import { Api, SecretChats } from "../2_tl.js";
|
|
22
22
|
import { type MaskPosition } from "./0_mask_position.js";
|
|
23
23
|
import { type Thumbnail } from "./0_thumbnail.js";
|
|
24
24
|
/** A sticker. */
|
|
@@ -58,4 +58,5 @@ export interface Sticker {
|
|
|
58
58
|
export type StickerSetNameGetter = (inputStickerSet: Api.inputStickerSetID) => MaybePromise<string | undefined>;
|
|
59
59
|
export declare function constructSticker(document: Api.document, fileId: string, fileUniqueId: string, getStickerSetName: StickerSetNameGetter, customEmojiId?: string): Promise<Sticker>;
|
|
60
60
|
export declare function constructSticker2(document: Api.document, fileId: string, fileUniqueId: string, setName: string | undefined, customEmojiId?: string): Sticker;
|
|
61
|
+
export declare function constructSticker3(document: SecretChats.decryptedMessageMediaExternalDocument | SecretChats.decryptedMessageMediaDocument46 | SecretChats.decryptedMessageMediaDocument, fileId: string, fileUniqueId: string): Sticker;
|
|
61
62
|
//# sourceMappingURL=1_sticker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1_sticker.d.ts","sourceRoot":"","sources":["../../src/types/1_sticker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"1_sticker.d.ts","sourceRoot":"","sources":["../../src/types/1_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