@mtkruto/node 0.148.0 → 0.150.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/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_params.d.ts +8 -0
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_utilities.d.ts +1 -1
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/1_client_generic.d.ts +20 -2
- package/esm/client/1_client_generic.d.ts.map +1 -1
- package/esm/client/3_filters.d.ts.map +1 -1
- package/esm/client/3_filters.js +4 -1
- package/esm/client/3_message_manager.d.ts +4 -2
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +84 -1
- package/esm/client/6_client.d.ts +20 -2
- package/esm/client/6_client.d.ts.map +1 -1
- package/esm/client/6_client.js +22 -0
- package/esm/client/6_client_dispatcher.d.ts +20 -2
- package/esm/client/6_client_dispatcher.d.ts.map +1 -1
- package/esm/client/6_client_dispatcher.js +22 -0
- package/esm/tl/1_telegram_api.d.ts +120 -29
- package/esm/tl/1_telegram_api.d.ts.map +1 -1
- package/esm/tl/1_telegram_api.js +124 -26
- package/esm/types/2_message_entity.d.ts +16 -0
- package/esm/types/2_message_entity.d.ts.map +1 -1
- package/esm/types/2_message_entity.js +51 -45
- package/esm/types/3_rich_text_component.d.ts +268 -0
- package/esm/types/3_rich_text_component.d.ts.map +1 -0
- package/esm/types/3_rich_text_component.js +161 -0
- package/esm/types/4_page_block.d.ts +479 -0
- package/esm/types/4_page_block.d.ts.map +1 -0
- package/esm/types/4_page_block.js +552 -0
- package/esm/types/5_input_rich_text.d.ts +38 -0
- package/esm/types/5_input_rich_text.d.ts.map +1 -0
- package/esm/types/5_input_rich_text.js +20 -0
- package/esm/types/6_message.d.ts +20 -1
- package/esm/types/6_message.d.ts.map +1 -1
- package/esm/types/6_message.js +26 -0
- package/package.json +1 -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_params.d.ts +8 -0
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_utilities.d.ts +1 -1
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/1_client_generic.d.ts +20 -2
- package/script/client/1_client_generic.d.ts.map +1 -1
- package/script/client/3_filters.d.ts.map +1 -1
- package/script/client/3_filters.js +4 -1
- package/script/client/3_message_manager.d.ts +4 -2
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +83 -0
- package/script/client/6_client.d.ts +20 -2
- package/script/client/6_client.d.ts.map +1 -1
- package/script/client/6_client.js +22 -0
- package/script/client/6_client_dispatcher.d.ts +20 -2
- package/script/client/6_client_dispatcher.d.ts.map +1 -1
- package/script/client/6_client_dispatcher.js +22 -0
- package/script/tl/1_telegram_api.d.ts +120 -29
- package/script/tl/1_telegram_api.d.ts.map +1 -1
- package/script/tl/1_telegram_api.js +124 -26
- package/script/types/2_message_entity.d.ts +16 -0
- package/script/types/2_message_entity.d.ts.map +1 -1
- package/script/types/2_message_entity.js +53 -45
- package/script/types/3_rich_text_component.d.ts +268 -0
- package/script/types/3_rich_text_component.d.ts.map +1 -0
- package/script/types/3_rich_text_component.js +165 -0
- package/script/types/4_page_block.d.ts +479 -0
- package/script/types/4_page_block.d.ts.map +1 -0
- package/script/types/4_page_block.js +569 -0
- package/script/types/5_input_rich_text.d.ts +38 -0
- package/script/types/5_input_rich_text.d.ts.map +1 -0
- package/script/types/5_input_rich_text.js +21 -0
- package/script/types/6_message.d.ts +20 -1
- package/script/types/6_message.d.ts.map +1 -1
- package/script/types/6_message.js +26 -0
|
@@ -33,9 +33,47 @@ export interface error {
|
|
|
33
33
|
code: number;
|
|
34
34
|
text: string;
|
|
35
35
|
}
|
|
36
|
-
/** https://core.telegram.org/constructor/
|
|
37
|
-
export interface
|
|
38
|
-
_: "
|
|
36
|
+
/** https://core.telegram.org/constructor/ipPort */
|
|
37
|
+
export interface ipPort {
|
|
38
|
+
_: "ipPort";
|
|
39
|
+
ipv4: number;
|
|
40
|
+
port: number;
|
|
41
|
+
}
|
|
42
|
+
/** https://core.telegram.org/constructor/ipPortSecret */
|
|
43
|
+
export interface ipPortSecret {
|
|
44
|
+
_: "ipPortSecret";
|
|
45
|
+
ipv4: number;
|
|
46
|
+
port: number;
|
|
47
|
+
secret: Uint8Array<ArrayBuffer>;
|
|
48
|
+
}
|
|
49
|
+
/** https://core.telegram.org/constructor/accessPointRule */
|
|
50
|
+
export interface accessPointRule {
|
|
51
|
+
_: "accessPointRule";
|
|
52
|
+
phone_prefix_rules: string;
|
|
53
|
+
dc_id: number;
|
|
54
|
+
ips: Array<IpPort>;
|
|
55
|
+
}
|
|
56
|
+
/** https://core.telegram.org/constructor/help.configSimple */
|
|
57
|
+
export interface help_configSimple {
|
|
58
|
+
_: "help.configSimple";
|
|
59
|
+
date: number;
|
|
60
|
+
expires: number;
|
|
61
|
+
rules: Array<AccessPointRule>;
|
|
62
|
+
}
|
|
63
|
+
/** https://core.telegram.org/constructor/inputPeerPhotoFileLocationLegacy */
|
|
64
|
+
export interface inputPeerPhotoFileLocationLegacy {
|
|
65
|
+
_: "inputPeerPhotoFileLocationLegacy";
|
|
66
|
+
big?: true;
|
|
67
|
+
peer: InputPeer;
|
|
68
|
+
volume_id: bigint;
|
|
69
|
+
local_id: number;
|
|
70
|
+
}
|
|
71
|
+
/** https://core.telegram.org/constructor/inputStickerSetThumbLegacy */
|
|
72
|
+
export interface inputStickerSetThumbLegacy {
|
|
73
|
+
_: "inputStickerSetThumbLegacy";
|
|
74
|
+
stickerset: InputStickerSet;
|
|
75
|
+
volume_id: bigint;
|
|
76
|
+
local_id: number;
|
|
39
77
|
}
|
|
40
78
|
/** https://core.telegram.org/constructor/inputPeerEmpty */
|
|
41
79
|
export interface inputPeerEmpty {
|
|
@@ -7867,7 +7905,6 @@ export interface messageReplyHeader {
|
|
|
7867
7905
|
reply_to_scheduled?: true;
|
|
7868
7906
|
forum_topic?: true;
|
|
7869
7907
|
quote?: true;
|
|
7870
|
-
reply_to_ephemeral?: true;
|
|
7871
7908
|
reply_to_msg_id?: number;
|
|
7872
7909
|
reply_to_peer_id?: Peer;
|
|
7873
7910
|
reply_from?: MessageFwdHeader;
|
|
@@ -11386,14 +11423,17 @@ export interface account_webBrowserSettings {
|
|
|
11386
11423
|
inapp_exceptions: Array<WebDomainException>;
|
|
11387
11424
|
hash: bigint;
|
|
11388
11425
|
}
|
|
11389
|
-
/** https://core.telegram.org/constructor/
|
|
11390
|
-
export interface
|
|
11391
|
-
_: "
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
|
|
11395
|
-
|
|
11396
|
-
|
|
11426
|
+
/** https://core.telegram.org/constructor/inputRichFilePhoto */
|
|
11427
|
+
export interface inputRichFilePhoto {
|
|
11428
|
+
_: "inputRichFilePhoto";
|
|
11429
|
+
id: string;
|
|
11430
|
+
photo: InputPhoto;
|
|
11431
|
+
}
|
|
11432
|
+
/** https://core.telegram.org/constructor/inputRichFileDocument */
|
|
11433
|
+
export interface inputRichFileDocument {
|
|
11434
|
+
_: "inputRichFileDocument";
|
|
11435
|
+
id: string;
|
|
11436
|
+
document: InputDocument;
|
|
11397
11437
|
}
|
|
11398
11438
|
/** https://core.telegram.org/constructor/inputRichMessage */
|
|
11399
11439
|
export interface inputRichMessage {
|
|
@@ -11411,9 +11451,7 @@ export interface inputRichMessageHTML {
|
|
|
11411
11451
|
rtl?: true;
|
|
11412
11452
|
noautolink?: true;
|
|
11413
11453
|
html: string;
|
|
11414
|
-
|
|
11415
|
-
documents?: Array<InputDocument>;
|
|
11416
|
-
users?: Array<InputUser>;
|
|
11454
|
+
files?: Array<InputRichFile>;
|
|
11417
11455
|
}
|
|
11418
11456
|
/** https://core.telegram.org/constructor/inputRichMessageMarkdown */
|
|
11419
11457
|
export interface inputRichMessageMarkdown {
|
|
@@ -11421,9 +11459,42 @@ export interface inputRichMessageMarkdown {
|
|
|
11421
11459
|
rtl?: true;
|
|
11422
11460
|
noautolink?: true;
|
|
11423
11461
|
markdown: string;
|
|
11424
|
-
|
|
11425
|
-
|
|
11426
|
-
|
|
11462
|
+
files?: Array<InputRichFile>;
|
|
11463
|
+
}
|
|
11464
|
+
/** https://core.telegram.org/constructor/richMessage */
|
|
11465
|
+
export interface richMessage {
|
|
11466
|
+
_: "richMessage";
|
|
11467
|
+
rtl?: true;
|
|
11468
|
+
part?: true;
|
|
11469
|
+
blocks: Array<PageBlock>;
|
|
11470
|
+
photos: Array<Photo>;
|
|
11471
|
+
documents: Array<Document>;
|
|
11472
|
+
}
|
|
11473
|
+
/** https://core.telegram.org/method/invokeWithBusinessConnectionPrefix */
|
|
11474
|
+
export interface invokeWithBusinessConnectionPrefix {
|
|
11475
|
+
_: "invokeWithBusinessConnectionPrefix";
|
|
11476
|
+
connection_id: string;
|
|
11477
|
+
[R]?: Error;
|
|
11478
|
+
}
|
|
11479
|
+
/** https://core.telegram.org/method/invokeWithGooglePlayIntegrityPrefix */
|
|
11480
|
+
export interface invokeWithGooglePlayIntegrityPrefix {
|
|
11481
|
+
_: "invokeWithGooglePlayIntegrityPrefix";
|
|
11482
|
+
nonce: string;
|
|
11483
|
+
token: string;
|
|
11484
|
+
[R]?: Error;
|
|
11485
|
+
}
|
|
11486
|
+
/** https://core.telegram.org/method/invokeWithApnsSecretPrefix */
|
|
11487
|
+
export interface invokeWithApnsSecretPrefix {
|
|
11488
|
+
_: "invokeWithApnsSecretPrefix";
|
|
11489
|
+
nonce: string;
|
|
11490
|
+
secret: string;
|
|
11491
|
+
[R]?: Error;
|
|
11492
|
+
}
|
|
11493
|
+
/** https://core.telegram.org/method/invokeWithReCaptchaPrefix */
|
|
11494
|
+
export interface invokeWithReCaptchaPrefix {
|
|
11495
|
+
_: "invokeWithReCaptchaPrefix";
|
|
11496
|
+
token: string;
|
|
11497
|
+
[R]?: Error;
|
|
11427
11498
|
}
|
|
11428
11499
|
/** https://core.telegram.org/method/invokeAfterMsg */
|
|
11429
11500
|
export interface invokeAfterMsg<T> {
|
|
@@ -17389,7 +17460,12 @@ export interface aicompose_getToneExample {
|
|
|
17389
17460
|
export interface Types {
|
|
17390
17461
|
"true": true_;
|
|
17391
17462
|
"error": error;
|
|
17392
|
-
"
|
|
17463
|
+
"ipPort": ipPort;
|
|
17464
|
+
"ipPortSecret": ipPortSecret;
|
|
17465
|
+
"accessPointRule": accessPointRule;
|
|
17466
|
+
"help.configSimple": help_configSimple;
|
|
17467
|
+
"inputPeerPhotoFileLocationLegacy": inputPeerPhotoFileLocationLegacy;
|
|
17468
|
+
"inputStickerSetThumbLegacy": inputStickerSetThumbLegacy;
|
|
17393
17469
|
"inputPeerEmpty": inputPeerEmpty;
|
|
17394
17470
|
"inputPeerSelf": inputPeerSelf;
|
|
17395
17471
|
"inputPeerChat": inputPeerChat;
|
|
@@ -18998,12 +19074,18 @@ export interface Types {
|
|
|
18998
19074
|
"webDomainException": webDomainException;
|
|
18999
19075
|
"account.webBrowserSettingsNotModified": account_webBrowserSettingsNotModified;
|
|
19000
19076
|
"account.webBrowserSettings": account_webBrowserSettings;
|
|
19001
|
-
"
|
|
19077
|
+
"inputRichFilePhoto": inputRichFilePhoto;
|
|
19078
|
+
"inputRichFileDocument": inputRichFileDocument;
|
|
19002
19079
|
"inputRichMessage": inputRichMessage;
|
|
19003
19080
|
"inputRichMessageHTML": inputRichMessageHTML;
|
|
19004
19081
|
"inputRichMessageMarkdown": inputRichMessageMarkdown;
|
|
19082
|
+
"richMessage": richMessage;
|
|
19005
19083
|
}
|
|
19006
19084
|
export interface Functions<T = Function> {
|
|
19085
|
+
"invokeWithBusinessConnectionPrefix": invokeWithBusinessConnectionPrefix;
|
|
19086
|
+
"invokeWithGooglePlayIntegrityPrefix": invokeWithGooglePlayIntegrityPrefix;
|
|
19087
|
+
"invokeWithApnsSecretPrefix": invokeWithApnsSecretPrefix;
|
|
19088
|
+
"invokeWithReCaptchaPrefix": invokeWithReCaptchaPrefix;
|
|
19007
19089
|
"invokeAfterMsg": invokeAfterMsg<T>;
|
|
19008
19090
|
"invokeAfterMsgs": invokeAfterMsgs<T>;
|
|
19009
19091
|
"initConnection": initConnection<T>;
|
|
@@ -19798,7 +19880,10 @@ export interface Functions<T = Function> {
|
|
|
19798
19880
|
export interface Enums {
|
|
19799
19881
|
"True": True;
|
|
19800
19882
|
"Error": Error;
|
|
19801
|
-
"
|
|
19883
|
+
"IpPort": IpPort;
|
|
19884
|
+
"AccessPointRule": AccessPointRule;
|
|
19885
|
+
"help.ConfigSimple": help_ConfigSimple;
|
|
19886
|
+
"InputFileLocation": InputFileLocation;
|
|
19802
19887
|
"InputPeer": InputPeer;
|
|
19803
19888
|
"InputUser": InputUser;
|
|
19804
19889
|
"InputContact": InputContact;
|
|
@@ -19807,7 +19892,6 @@ export interface Enums {
|
|
|
19807
19892
|
"InputChatPhoto": InputChatPhoto;
|
|
19808
19893
|
"InputGeoPoint": InputGeoPoint;
|
|
19809
19894
|
"InputPhoto": InputPhoto;
|
|
19810
|
-
"InputFileLocation": InputFileLocation;
|
|
19811
19895
|
"Peer": Peer;
|
|
19812
19896
|
"storage.FileType": storage_FileType;
|
|
19813
19897
|
"User": User;
|
|
@@ -20393,8 +20477,9 @@ export interface Enums {
|
|
|
20393
20477
|
"JoinChatBotResult": JoinChatBotResult;
|
|
20394
20478
|
"WebDomainException": WebDomainException;
|
|
20395
20479
|
"account.WebBrowserSettings": account_WebBrowserSettings;
|
|
20396
|
-
"
|
|
20480
|
+
"InputRichFile": InputRichFile;
|
|
20397
20481
|
"InputRichMessage": InputRichMessage;
|
|
20482
|
+
"RichMessage": RichMessage;
|
|
20398
20483
|
}
|
|
20399
20484
|
export type AnyType = Types[keyof Types];
|
|
20400
20485
|
export type AnyFunction<T = Function> = Functions<T>[keyof Functions<T>];
|
|
@@ -20404,8 +20489,14 @@ export type AnyObject<T = Function> = AnyType | AnyFunction<T>;
|
|
|
20404
20489
|
export type True = true_;
|
|
20405
20490
|
/** https://core.telegram.org/type/Error */
|
|
20406
20491
|
export type Error = error;
|
|
20407
|
-
/** https://core.telegram.org/type/
|
|
20408
|
-
export type
|
|
20492
|
+
/** https://core.telegram.org/type/IpPort */
|
|
20493
|
+
export type IpPort = ipPort | ipPortSecret;
|
|
20494
|
+
/** https://core.telegram.org/type/AccessPointRule */
|
|
20495
|
+
export type AccessPointRule = accessPointRule;
|
|
20496
|
+
/** https://core.telegram.org/type/help.ConfigSimple */
|
|
20497
|
+
export type help_ConfigSimple = help_configSimple;
|
|
20498
|
+
/** https://core.telegram.org/type/InputFileLocation */
|
|
20499
|
+
export type InputFileLocation = inputPeerPhotoFileLocationLegacy | inputStickerSetThumbLegacy | inputFileLocation | inputEncryptedFileLocation | inputDocumentFileLocation | inputSecureFileLocation | inputTakeoutFileLocation | inputPhotoFileLocation | inputPhotoLegacyFileLocation | inputPeerPhotoFileLocation | inputStickerSetThumb | inputGroupCallStream;
|
|
20409
20500
|
/** https://core.telegram.org/type/InputPeer */
|
|
20410
20501
|
export type InputPeer = inputPeerEmpty | inputPeerSelf | inputPeerChat | inputPeerUser | inputPeerChannel | inputPeerUserFromMessage | inputPeerChannelFromMessage;
|
|
20411
20502
|
/** https://core.telegram.org/type/InputUser */
|
|
@@ -20422,8 +20513,6 @@ export type InputChatPhoto = inputChatPhotoEmpty | inputChatUploadedPhoto | inpu
|
|
|
20422
20513
|
export type InputGeoPoint = inputGeoPointEmpty | inputGeoPoint;
|
|
20423
20514
|
/** https://core.telegram.org/type/InputPhoto */
|
|
20424
20515
|
export type InputPhoto = inputPhotoEmpty | inputPhoto;
|
|
20425
|
-
/** https://core.telegram.org/type/InputFileLocation */
|
|
20426
|
-
export type InputFileLocation = inputFileLocation | inputEncryptedFileLocation | inputDocumentFileLocation | inputSecureFileLocation | inputTakeoutFileLocation | inputPhotoFileLocation | inputPhotoLegacyFileLocation | inputPeerPhotoFileLocation | inputStickerSetThumb | inputGroupCallStream;
|
|
20427
20516
|
/** https://core.telegram.org/type/Peer */
|
|
20428
20517
|
export type Peer = peerUser | peerChat | peerChannel;
|
|
20429
20518
|
/** https://core.telegram.org/type/storage.FileType */
|
|
@@ -21594,10 +21683,12 @@ export type JoinChatBotResult = joinChatBotResultApproved | joinChatBotResultDec
|
|
|
21594
21683
|
export type WebDomainException = webDomainException;
|
|
21595
21684
|
/** https://core.telegram.org/type/account.WebBrowserSettings */
|
|
21596
21685
|
export type account_WebBrowserSettings = account_webBrowserSettingsNotModified | account_webBrowserSettings;
|
|
21597
|
-
/** https://core.telegram.org/type/
|
|
21598
|
-
export type
|
|
21686
|
+
/** https://core.telegram.org/type/InputRichFile */
|
|
21687
|
+
export type InputRichFile = inputRichFilePhoto | inputRichFileDocument;
|
|
21599
21688
|
/** https://core.telegram.org/type/InputRichMessage */
|
|
21600
21689
|
export type InputRichMessage = inputRichMessage | inputRichMessageHTML | inputRichMessageMarkdown;
|
|
21690
|
+
/** https://core.telegram.org/type/RichMessage */
|
|
21691
|
+
export type RichMessage = richMessage;
|
|
21601
21692
|
export declare const schema: Schema;
|
|
21602
21693
|
export declare const LAYER = 227;
|
|
21603
21694
|
export {};
|