@tgsnake/skema 1.0.0 → 1.1.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/README.md +1 -1
- package/dist/raw/All.d.ts +2 -2
- package/dist/raw/All.js +2 -2
- package/dist/raw/Raw.d.ts +4 -0
- package/dist/raw/Raw.js +21 -3
- package/package.json +4 -2
package/README.md
CHANGED
package/dist/raw/All.d.ts
CHANGED
|
@@ -1103,7 +1103,7 @@ export declare const AllTLObject: {
|
|
|
1103
1103
|
1163625789: string;
|
|
1104
1104
|
3066361155: string;
|
|
1105
1105
|
2788431746: string;
|
|
1106
|
-
|
|
1106
|
+
1763137035: string;
|
|
1107
1107
|
240843065: string;
|
|
1108
1108
|
2211844034: string;
|
|
1109
1109
|
3908927508: string;
|
|
@@ -1297,7 +1297,7 @@ export declare const AllTLObject: {
|
|
|
1297
1297
|
3178549065: string;
|
|
1298
1298
|
1507299269: string;
|
|
1299
1299
|
3734957341: string;
|
|
1300
|
-
|
|
1300
|
+
2258615824: string;
|
|
1301
1301
|
1484862010: string;
|
|
1302
1302
|
1775660101: string;
|
|
1303
1303
|
1070138683: string;
|
package/dist/raw/All.js
CHANGED
|
@@ -1106,7 +1106,7 @@ exports.AllTLObject = {
|
|
|
1106
1106
|
0x455b853d: 'Raw.MessageViews',
|
|
1107
1107
|
0xb6c4f543: 'Raw.messages.MessageViews',
|
|
1108
1108
|
0xa6341782: 'Raw.messages.DiscussionMessage',
|
|
1109
|
-
|
|
1109
|
+
0x6917560b: 'Raw.MessageReplyHeader',
|
|
1110
1110
|
0xe5af939: 'Raw.MessageReplyStoryHeader',
|
|
1111
1111
|
0x83d60fc2: 'Raw.MessageReplies',
|
|
1112
1112
|
0xe8fd8014: 'Raw.PeerBlocked',
|
|
@@ -1300,7 +1300,7 @@ exports.AllTLObject = {
|
|
|
1300
1300
|
0xbd74cf49: 'Raw.StoryViewPublicRepost',
|
|
1301
1301
|
0x59d78fc5: 'Raw.stories.StoryViewsList',
|
|
1302
1302
|
0xde9eed1d: 'Raw.stories.StoryViews',
|
|
1303
|
-
|
|
1303
|
+
0x869fbe10: 'Raw.InputReplyToMessage',
|
|
1304
1304
|
0x5881323a: 'Raw.InputReplyToStory',
|
|
1305
1305
|
0x69d66c45: 'Raw.InputReplyToMonoForum',
|
|
1306
1306
|
0x3fc9053b: 'Raw.ExportedStoryLink',
|
package/dist/raw/Raw.d.ts
CHANGED
|
@@ -11370,6 +11370,7 @@ export declare namespace Raw {
|
|
|
11370
11370
|
quoteText?: string;
|
|
11371
11371
|
quoteEntities?: Vector<Raw.TypeMessageEntity>;
|
|
11372
11372
|
quoteOffset?: int;
|
|
11373
|
+
todoItemId?: int;
|
|
11373
11374
|
constructor(params: {
|
|
11374
11375
|
replyToScheduled?: boolean;
|
|
11375
11376
|
forumTopic?: boolean;
|
|
@@ -11382,6 +11383,7 @@ export declare namespace Raw {
|
|
|
11382
11383
|
quoteText?: string;
|
|
11383
11384
|
quoteEntities?: Vector<Raw.TypeMessageEntity>;
|
|
11384
11385
|
quoteOffset?: int;
|
|
11386
|
+
todoItemId?: int;
|
|
11385
11387
|
});
|
|
11386
11388
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.MessageReplyHeader>;
|
|
11387
11389
|
write(): Buffer;
|
|
@@ -12934,6 +12936,7 @@ export declare namespace Raw {
|
|
|
12934
12936
|
quoteEntities?: Vector<Raw.TypeMessageEntity>;
|
|
12935
12937
|
quoteOffset?: int;
|
|
12936
12938
|
monoforumPeerId?: Raw.TypeInputPeer;
|
|
12939
|
+
todoItemId?: int;
|
|
12937
12940
|
constructor(params: {
|
|
12938
12941
|
replyToMsgId: int;
|
|
12939
12942
|
topMsgId?: int;
|
|
@@ -12942,6 +12945,7 @@ export declare namespace Raw {
|
|
|
12942
12945
|
quoteEntities?: Vector<Raw.TypeMessageEntity>;
|
|
12943
12946
|
quoteOffset?: int;
|
|
12944
12947
|
monoforumPeerId?: Raw.TypeInputPeer;
|
|
12948
|
+
todoItemId?: int;
|
|
12945
12949
|
});
|
|
12946
12950
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.InputReplyToMessage>;
|
|
12947
12951
|
write(): Buffer;
|
package/dist/raw/Raw.js
CHANGED
|
@@ -5,7 +5,7 @@ const index_js_1 = require("@/raw/core/index.js");
|
|
|
5
5
|
const deps_js_1 = require("@/deps.js");
|
|
6
6
|
var Raw;
|
|
7
7
|
(function (Raw) {
|
|
8
|
-
Raw.Layer =
|
|
8
|
+
Raw.Layer = 209;
|
|
9
9
|
Raw.HighestSCLayer = 144;
|
|
10
10
|
class ResPQ extends index_js_1.TLObject {
|
|
11
11
|
nonce;
|
|
@@ -38311,11 +38311,12 @@ var Raw;
|
|
|
38311
38311
|
quoteText;
|
|
38312
38312
|
quoteEntities;
|
|
38313
38313
|
quoteOffset;
|
|
38314
|
+
todoItemId;
|
|
38314
38315
|
constructor(params) {
|
|
38315
38316
|
super();
|
|
38316
38317
|
this.classType = 'types';
|
|
38317
38318
|
this.className = 'MessageReplyHeader';
|
|
38318
|
-
this.constructorId =
|
|
38319
|
+
this.constructorId = 0x6917560b;
|
|
38319
38320
|
this.subclassOfId = 0x5b4d9167;
|
|
38320
38321
|
this._slots = [
|
|
38321
38322
|
'replyToScheduled',
|
|
@@ -38329,6 +38330,7 @@ var Raw;
|
|
|
38329
38330
|
'quoteText',
|
|
38330
38331
|
'quoteEntities',
|
|
38331
38332
|
'quoteOffset',
|
|
38333
|
+
'todoItemId',
|
|
38332
38334
|
];
|
|
38333
38335
|
this.replyToScheduled = params.replyToScheduled;
|
|
38334
38336
|
this.forumTopic = params.forumTopic;
|
|
@@ -38341,6 +38343,7 @@ var Raw;
|
|
|
38341
38343
|
this.quoteText = params.quoteText;
|
|
38342
38344
|
this.quoteEntities = params.quoteEntities;
|
|
38343
38345
|
this.quoteOffset = params.quoteOffset;
|
|
38346
|
+
this.todoItemId = params.todoItemId;
|
|
38344
38347
|
}
|
|
38345
38348
|
static async read(_data, ..._args) {
|
|
38346
38349
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -38355,6 +38358,7 @@ var Raw;
|
|
|
38355
38358
|
let quoteText = flags & (1 << 6) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
38356
38359
|
let quoteEntities = flags & (1 << 7) ? await index_js_1.TLObject.read(_data) : [];
|
|
38357
38360
|
let quoteOffset = flags & (1 << 10) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
38361
|
+
let todoItemId = flags & (1 << 11) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
38358
38362
|
return new Raw.MessageReplyHeader({
|
|
38359
38363
|
replyToScheduled: replyToScheduled,
|
|
38360
38364
|
forumTopic: forumTopic,
|
|
@@ -38367,6 +38371,7 @@ var Raw;
|
|
|
38367
38371
|
quoteText: quoteText,
|
|
38368
38372
|
quoteEntities: quoteEntities,
|
|
38369
38373
|
quoteOffset: quoteOffset,
|
|
38374
|
+
todoItemId: todoItemId,
|
|
38370
38375
|
});
|
|
38371
38376
|
}
|
|
38372
38377
|
write() {
|
|
@@ -38384,6 +38389,7 @@ var Raw;
|
|
|
38384
38389
|
flags |= this.quoteText !== undefined ? 1 << 6 : 0;
|
|
38385
38390
|
flags |= this.quoteEntities ? 1 << 7 : 0;
|
|
38386
38391
|
flags |= this.quoteOffset !== undefined ? 1 << 10 : 0;
|
|
38392
|
+
flags |= this.todoItemId !== undefined ? 1 << 11 : 0;
|
|
38387
38393
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
38388
38394
|
if (this.replyToMsgId !== undefined) {
|
|
38389
38395
|
b.write(index_js_1.Primitive.Int.write(this.replyToMsgId));
|
|
@@ -38409,6 +38415,9 @@ var Raw;
|
|
|
38409
38415
|
if (this.quoteOffset !== undefined) {
|
|
38410
38416
|
b.write(index_js_1.Primitive.Int.write(this.quoteOffset));
|
|
38411
38417
|
}
|
|
38418
|
+
if (this.todoItemId !== undefined) {
|
|
38419
|
+
b.write(index_js_1.Primitive.Int.write(this.todoItemId));
|
|
38420
|
+
}
|
|
38412
38421
|
return deps_js_1.Buffer.from(b.buffer);
|
|
38413
38422
|
}
|
|
38414
38423
|
}
|
|
@@ -43824,11 +43833,12 @@ var Raw;
|
|
|
43824
43833
|
quoteEntities;
|
|
43825
43834
|
quoteOffset;
|
|
43826
43835
|
monoforumPeerId;
|
|
43836
|
+
todoItemId;
|
|
43827
43837
|
constructor(params) {
|
|
43828
43838
|
super();
|
|
43829
43839
|
this.classType = 'types';
|
|
43830
43840
|
this.className = 'InputReplyToMessage';
|
|
43831
|
-
this.constructorId =
|
|
43841
|
+
this.constructorId = 0x869fbe10;
|
|
43832
43842
|
this.subclassOfId = 0x8c71131d;
|
|
43833
43843
|
this._slots = [
|
|
43834
43844
|
'replyToMsgId',
|
|
@@ -43838,6 +43848,7 @@ var Raw;
|
|
|
43838
43848
|
'quoteEntities',
|
|
43839
43849
|
'quoteOffset',
|
|
43840
43850
|
'monoforumPeerId',
|
|
43851
|
+
'todoItemId',
|
|
43841
43852
|
];
|
|
43842
43853
|
this.replyToMsgId = params.replyToMsgId;
|
|
43843
43854
|
this.topMsgId = params.topMsgId;
|
|
@@ -43846,6 +43857,7 @@ var Raw;
|
|
|
43846
43857
|
this.quoteEntities = params.quoteEntities;
|
|
43847
43858
|
this.quoteOffset = params.quoteOffset;
|
|
43848
43859
|
this.monoforumPeerId = params.monoforumPeerId;
|
|
43860
|
+
this.todoItemId = params.todoItemId;
|
|
43849
43861
|
}
|
|
43850
43862
|
static async read(_data, ..._args) {
|
|
43851
43863
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -43856,6 +43868,7 @@ var Raw;
|
|
|
43856
43868
|
let quoteEntities = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : [];
|
|
43857
43869
|
let quoteOffset = flags & (1 << 4) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
43858
43870
|
let monoforumPeerId = flags & (1 << 5) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
43871
|
+
let todoItemId = flags & (1 << 6) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
43859
43872
|
return new Raw.InputReplyToMessage({
|
|
43860
43873
|
replyToMsgId: replyToMsgId,
|
|
43861
43874
|
topMsgId: topMsgId,
|
|
@@ -43864,6 +43877,7 @@ var Raw;
|
|
|
43864
43877
|
quoteEntities: quoteEntities,
|
|
43865
43878
|
quoteOffset: quoteOffset,
|
|
43866
43879
|
monoforumPeerId: monoforumPeerId,
|
|
43880
|
+
todoItemId: todoItemId,
|
|
43867
43881
|
});
|
|
43868
43882
|
}
|
|
43869
43883
|
write() {
|
|
@@ -43876,6 +43890,7 @@ var Raw;
|
|
|
43876
43890
|
flags |= this.quoteEntities ? 1 << 3 : 0;
|
|
43877
43891
|
flags |= this.quoteOffset !== undefined ? 1 << 4 : 0;
|
|
43878
43892
|
flags |= this.monoforumPeerId !== undefined ? 1 << 5 : 0;
|
|
43893
|
+
flags |= this.todoItemId !== undefined ? 1 << 6 : 0;
|
|
43879
43894
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
43880
43895
|
if (this.replyToMsgId !== undefined) {
|
|
43881
43896
|
b.write(index_js_1.Primitive.Int.write(this.replyToMsgId));
|
|
@@ -43898,6 +43913,9 @@ var Raw;
|
|
|
43898
43913
|
if (this.monoforumPeerId !== undefined) {
|
|
43899
43914
|
b.write(this.monoforumPeerId.write());
|
|
43900
43915
|
}
|
|
43916
|
+
if (this.todoItemId !== undefined) {
|
|
43917
|
+
b.write(index_js_1.Primitive.Int.write(this.todoItemId));
|
|
43918
|
+
}
|
|
43901
43919
|
return deps_js_1.Buffer.from(b.buffer);
|
|
43902
43920
|
}
|
|
43903
43921
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tgsnake/skema",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A compiled Telegram TL Schema and Telegram errors Schema into usable JavaScript classes with full TypeScript support",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=12.0.0",
|
|
24
24
|
"npm": ">=6.0.0",
|
|
25
|
-
"yarn": ">=1.0.0"
|
|
25
|
+
"yarn": ">=1.0.0",
|
|
26
|
+
"deno": ">=1.0.0",
|
|
27
|
+
"bun": ">=1.0.0"
|
|
26
28
|
},
|
|
27
29
|
"scripts": {
|
|
28
30
|
"build": "tsc",
|