@tgsnake/skema 3.2.0 → 3.2.1-browser.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/dist/src/deps.d.ts +4 -3
- package/dist/src/deps.js +4 -4
- package/dist/src/raw/class/All.d.ts +1 -1
- package/dist/src/raw/class/All.js +2783 -2783
- package/dist/src/raw/class/Raw.d.ts +7601 -7601
- package/dist/src/raw/class/Raw.js +26781 -20676
- package/dist/src/raw/class/tl/account.d.ts +841 -841
- package/dist/src/raw/class/tl/account.js +1983 -1813
- package/dist/src/raw/class/tl/aicompose.d.ts +51 -51
- package/dist/src/raw/class/tl/aicompose.js +128 -117
- package/dist/src/raw/class/tl/auth.d.ts +296 -296
- package/dist/src/raw/class/tl/auth.js +849 -714
- package/dist/src/raw/class/tl/bots.d.ts +256 -256
- package/dist/src/raw/class/tl/bots.js +661 -607
- package/dist/src/raw/class/tl/channels.d.ts +336 -336
- package/dist/src/raw/class/tl/channels.js +836 -745
- package/dist/src/raw/class/tl/chatlists.d.ts +81 -81
- package/dist/src/raw/class/tl/chatlists.js +196 -183
- package/dist/src/raw/class/tl/communities.d.ts +56 -56
- package/dist/src/raw/class/tl/communities.js +159 -138
- package/dist/src/raw/class/tl/contacts.d.ts +216 -216
- package/dist/src/raw/class/tl/contacts.js +537 -492
- package/dist/src/raw/class/tl/ephemeral.d.ts +51 -51
- package/dist/src/raw/class/tl/ephemeral.js +204 -152
- package/dist/src/raw/class/tl/feed.d.ts +71 -71
- package/dist/src/raw/class/tl/feed.js +214 -179
- package/dist/src/raw/class/tl/folders.d.ts +6 -6
- package/dist/src/raw/class/tl/folders.js +11 -11
- package/dist/src/raw/class/tl/fragment.d.ts +11 -11
- package/dist/src/raw/class/tl/fragment.js +32 -25
- package/dist/src/raw/class/tl/help.d.ts +286 -286
- package/dist/src/raw/class/tl/help.js +686 -618
- package/dist/src/raw/class/tl/langpack.d.ts +26 -26
- package/dist/src/raw/class/tl/langpack.js +57 -57
- package/dist/src/raw/class/tl/messages.d.ts +1866 -1866
- package/dist/src/raw/class/tl/messages.js +5965 -4886
- package/dist/src/raw/class/tl/payments.d.ts +646 -646
- package/dist/src/raw/class/tl/payments.js +2254 -1766
- package/dist/src/raw/class/tl/phone.d.ts +256 -256
- package/dist/src/raw/class/tl/phone.js +779 -644
- package/dist/src/raw/class/tl/photos.d.ts +41 -41
- package/dist/src/raw/class/tl/photos.js +139 -116
- package/dist/src/raw/class/tl/premium.d.ts +41 -41
- package/dist/src/raw/class/tl/premium.js +133 -111
- package/dist/src/raw/class/tl/smsjobs.d.ts +46 -46
- package/dist/src/raw/class/tl/smsjobs.js +115 -97
- package/dist/src/raw/class/tl/stats.d.ts +71 -71
- package/dist/src/raw/class/tl/stats.js +268 -169
- package/dist/src/raw/class/tl/stickers.d.ts +61 -61
- package/dist/src/raw/class/tl/stickers.js +173 -144
- package/dist/src/raw/class/tl/storage.d.ts +51 -51
- package/dist/src/raw/class/tl/storage.js +71 -71
- package/dist/src/raw/class/tl/stories.d.ts +221 -221
- package/dist/src/raw/class/tl/stories.js +781 -622
- package/dist/src/raw/class/tl/toncenter.d.ts +21 -21
- package/dist/src/raw/class/tl/toncenter.js +52 -47
- package/dist/src/raw/class/tl/updates.d.ts +56 -56
- package/dist/src/raw/class/tl/updates.js +246 -175
- package/dist/src/raw/class/tl/upload.d.ts +66 -66
- package/dist/src/raw/class/tl/upload.js +178 -155
- package/dist/src/raw/class/tl/users.d.ts +61 -61
- package/dist/src/raw/class/tl/users.js +124 -124
- package/dist/src/raw/class/tl/wallet.d.ts +221 -221
- package/dist/src/raw/class/tl/wallet.js +624 -558
- package/dist/src/raw/class/types.d.ts +1 -1
- package/dist/src/raw/class/types.js +1 -1
- package/package.json +6 -4
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* tgsnake is a free software: you can redistribute it and/or modify
|
|
8
8
|
* it under the terms of the MIT License as published.
|
|
9
|
-
*/
|
|
9
|
+
*/
|
|
10
10
|
import { TLObject } from '../../core/index.js';
|
|
11
11
|
import { Buffer, BytesIO } from '../../../deps.js';
|
|
12
12
|
import type { int } from '../types.js';
|
|
@@ -19,13 +19,13 @@ export declare class ApiResponse extends TLObject {
|
|
|
19
19
|
response: raw.TypeDataJSON;
|
|
20
20
|
});
|
|
21
21
|
/**
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
* Generate the TLObject from buffer.
|
|
23
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
24
|
+
*/
|
|
25
25
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<ApiResponse>;
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
* Generate buffer from TLObject.
|
|
28
|
+
*/
|
|
29
29
|
write(): Buffer;
|
|
30
30
|
}
|
|
31
31
|
export declare class StreamingUrl extends TLObject {
|
|
@@ -36,13 +36,13 @@ export declare class StreamingUrl extends TLObject {
|
|
|
36
36
|
expires: int;
|
|
37
37
|
});
|
|
38
38
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
* Generate the TLObject from buffer.
|
|
40
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
41
|
+
*/
|
|
42
42
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<StreamingUrl>;
|
|
43
43
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
* Generate buffer from TLObject.
|
|
45
|
+
*/
|
|
46
46
|
write(): Buffer;
|
|
47
47
|
}
|
|
48
48
|
export declare class PerformApiRequest extends TLObject {
|
|
@@ -58,25 +58,25 @@ export declare class PerformApiRequest extends TLObject {
|
|
|
58
58
|
payload?: string;
|
|
59
59
|
});
|
|
60
60
|
/**
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
* Generate the TLObject from buffer.
|
|
62
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
63
|
+
*/
|
|
64
64
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<PerformApiRequest>;
|
|
65
65
|
/**
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
* Generate buffer from TLObject.
|
|
67
|
+
*/
|
|
68
68
|
write(): Buffer;
|
|
69
69
|
}
|
|
70
70
|
export declare class GetStreamingUrl extends TLObject {
|
|
71
71
|
__response__: TypeStreamingUrl;
|
|
72
72
|
constructor();
|
|
73
73
|
/**
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
* Generate the TLObject from buffer.
|
|
75
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
76
|
+
*/
|
|
77
77
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<GetStreamingUrl>;
|
|
78
78
|
/**
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
* Generate buffer from TLObject.
|
|
80
|
+
*/
|
|
81
81
|
write(): Buffer;
|
|
82
82
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* tgsnake is a free software: you can redistribute it and/or modify
|
|
8
8
|
* it under the terms of the MIT License as published.
|
|
9
|
-
*/
|
|
9
|
+
*/
|
|
10
10
|
// This file is auto generate. All change made in this file will be lost!
|
|
11
11
|
import { TLObject, Primitive } from '../../core/index.js';
|
|
12
12
|
import { BytesIO } from '../../../deps.js';
|
|
@@ -14,25 +14,25 @@ export class ApiResponse extends TLObject {
|
|
|
14
14
|
response;
|
|
15
15
|
constructor(params) {
|
|
16
16
|
super();
|
|
17
|
-
this.classType =
|
|
18
|
-
this.className =
|
|
17
|
+
this.classType = 'types';
|
|
18
|
+
this.className = 'toncenter.ApiResponse';
|
|
19
19
|
this.constructorId = 0xac8dfe19;
|
|
20
20
|
this.subclassOfId = 0x58093fd1;
|
|
21
|
-
this._slots = [
|
|
21
|
+
this._slots = ['response'];
|
|
22
22
|
this.response = params.response;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
* Generate the TLObject from buffer.
|
|
26
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
27
|
+
*/
|
|
28
28
|
static async read(_data, ..._args) {
|
|
29
29
|
// no flags
|
|
30
30
|
let response = await TLObject.read(_data);
|
|
31
|
-
return new ApiResponse({
|
|
31
|
+
return new ApiResponse({ response: response });
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
* Generate buffer from TLObject.
|
|
35
|
+
*/
|
|
36
36
|
write() {
|
|
37
37
|
const b = new BytesIO();
|
|
38
38
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -48,36 +48,36 @@ export class StreamingUrl extends TLObject {
|
|
|
48
48
|
expires;
|
|
49
49
|
constructor(params) {
|
|
50
50
|
super();
|
|
51
|
-
this.classType =
|
|
52
|
-
this.className =
|
|
51
|
+
this.classType = 'types';
|
|
52
|
+
this.className = 'toncenter.StreamingUrl';
|
|
53
53
|
this.constructorId = 0x19887601;
|
|
54
54
|
this.subclassOfId = 0x4c379ca2;
|
|
55
|
-
this._slots = [
|
|
55
|
+
this._slots = ['url', 'expires'];
|
|
56
56
|
this.url = params.url;
|
|
57
57
|
this.expires = params.expires;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
* Generate the TLObject from buffer.
|
|
61
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
62
|
+
*/
|
|
63
63
|
static async read(_data, ..._args) {
|
|
64
64
|
// no flags
|
|
65
65
|
let url = await Primitive.String.read(_data);
|
|
66
66
|
let expires = await Primitive.Int.read(_data);
|
|
67
|
-
return new StreamingUrl({
|
|
67
|
+
return new StreamingUrl({ url: url, expires: expires });
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
* Generate buffer from TLObject.
|
|
71
|
+
*/
|
|
72
72
|
write() {
|
|
73
73
|
const b = new BytesIO();
|
|
74
74
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
75
75
|
// no flags
|
|
76
76
|
if (this.url !== undefined) {
|
|
77
|
-
b.write(
|
|
77
|
+
b.write(Primitive.String.write(this.url));
|
|
78
78
|
}
|
|
79
79
|
if (this.expires !== undefined) {
|
|
80
|
-
b.write(
|
|
80
|
+
b.write(Primitive.Int.write(this.expires));
|
|
81
81
|
}
|
|
82
82
|
return b.buffer;
|
|
83
83
|
}
|
|
@@ -90,49 +90,54 @@ export class PerformApiRequest extends TLObject {
|
|
|
90
90
|
payload;
|
|
91
91
|
constructor(params) {
|
|
92
92
|
super();
|
|
93
|
-
this.classType =
|
|
94
|
-
this.className =
|
|
93
|
+
this.classType = 'functions';
|
|
94
|
+
this.className = 'toncenter.PerformApiRequest';
|
|
95
95
|
this.constructorId = 0x8d7bdd61;
|
|
96
96
|
this.subclassOfId = 0x58093fd1;
|
|
97
|
-
this._slots = [
|
|
97
|
+
this._slots = ['post', 'endpoint', 'query', 'payload'];
|
|
98
98
|
this.post = params.post;
|
|
99
99
|
this.endpoint = params.endpoint;
|
|
100
100
|
this.query = params.query;
|
|
101
101
|
this.payload = params.payload;
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
* Generate the TLObject from buffer.
|
|
105
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
106
|
+
*/
|
|
107
107
|
static async read(_data, ..._args) {
|
|
108
108
|
// @ts-ignore
|
|
109
109
|
let flags = await Primitive.Int.read(_data);
|
|
110
|
-
let post =
|
|
110
|
+
let post = flags & (1 << 0) ? true : false;
|
|
111
111
|
let endpoint = await Primitive.String.read(_data);
|
|
112
|
-
let query =
|
|
113
|
-
let payload =
|
|
114
|
-
return new PerformApiRequest({
|
|
112
|
+
let query = flags & (1 << 1) ? await Primitive.String.read(_data) : undefined;
|
|
113
|
+
let payload = flags & (1 << 2) ? await Primitive.String.read(_data) : undefined;
|
|
114
|
+
return new PerformApiRequest({
|
|
115
|
+
post: post,
|
|
116
|
+
endpoint: endpoint,
|
|
117
|
+
query: query,
|
|
118
|
+
payload: payload,
|
|
119
|
+
});
|
|
115
120
|
}
|
|
116
121
|
/**
|
|
117
|
-
|
|
118
|
-
|
|
122
|
+
* Generate buffer from TLObject.
|
|
123
|
+
*/
|
|
119
124
|
write() {
|
|
120
125
|
const b = new BytesIO();
|
|
121
126
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
122
127
|
// @ts-ignore
|
|
123
128
|
let flags = 0;
|
|
124
|
-
flags |= this.post ?
|
|
125
|
-
flags |= this.query !== undefined ?
|
|
126
|
-
flags |= this.payload !== undefined ?
|
|
127
|
-
b.write(
|
|
129
|
+
flags |= this.post ? 1 << 0 : 0;
|
|
130
|
+
flags |= this.query !== undefined ? 1 << 1 : 0;
|
|
131
|
+
flags |= this.payload !== undefined ? 1 << 2 : 0;
|
|
132
|
+
b.write(Primitive.Int.write(flags));
|
|
128
133
|
if (this.endpoint !== undefined) {
|
|
129
|
-
b.write(
|
|
134
|
+
b.write(Primitive.String.write(this.endpoint));
|
|
130
135
|
}
|
|
131
136
|
if (this.query !== undefined) {
|
|
132
|
-
b.write(
|
|
137
|
+
b.write(Primitive.String.write(this.query));
|
|
133
138
|
}
|
|
134
139
|
if (this.payload !== undefined) {
|
|
135
|
-
b.write(
|
|
140
|
+
b.write(Primitive.String.write(this.payload));
|
|
136
141
|
}
|
|
137
142
|
return b.buffer;
|
|
138
143
|
}
|
|
@@ -141,23 +146,23 @@ export class GetStreamingUrl extends TLObject {
|
|
|
141
146
|
__response__;
|
|
142
147
|
constructor() {
|
|
143
148
|
super();
|
|
144
|
-
this.classType =
|
|
145
|
-
this.className =
|
|
149
|
+
this.classType = 'functions';
|
|
150
|
+
this.className = 'toncenter.GetStreamingUrl';
|
|
146
151
|
this.constructorId = 0xcdaf63c7;
|
|
147
152
|
this.subclassOfId = 0x4c379ca2;
|
|
148
153
|
this._slots = [];
|
|
149
154
|
}
|
|
150
155
|
/**
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
156
|
+
* Generate the TLObject from buffer.
|
|
157
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
158
|
+
*/
|
|
154
159
|
static async read(_data, ..._args) {
|
|
155
160
|
// no flags
|
|
156
161
|
return new GetStreamingUrl();
|
|
157
162
|
}
|
|
158
163
|
/**
|
|
159
|
-
|
|
160
|
-
|
|
164
|
+
* Generate buffer from TLObject.
|
|
165
|
+
*/
|
|
161
166
|
write() {
|
|
162
167
|
const b = new BytesIO();
|
|
163
168
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* tgsnake is a free software: you can redistribute it and/or modify
|
|
8
8
|
* it under the terms of the MIT License as published.
|
|
9
|
-
*/
|
|
9
|
+
*/
|
|
10
10
|
import { TLObject } from '../../core/index.js';
|
|
11
11
|
import { Buffer, BytesIO } from '../../../deps.js';
|
|
12
12
|
import type { Vector, int } from '../types.js';
|
|
@@ -28,13 +28,13 @@ export declare class State extends TLObject {
|
|
|
28
28
|
unreadCount: int;
|
|
29
29
|
});
|
|
30
30
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
* Generate the TLObject from buffer.
|
|
32
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
33
|
+
*/
|
|
34
34
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<State>;
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
* Generate buffer from TLObject.
|
|
37
|
+
*/
|
|
38
38
|
write(): Buffer;
|
|
39
39
|
}
|
|
40
40
|
export declare class DifferenceEmpty extends TLObject {
|
|
@@ -45,13 +45,13 @@ export declare class DifferenceEmpty extends TLObject {
|
|
|
45
45
|
seq: int;
|
|
46
46
|
});
|
|
47
47
|
/**
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
* Generate the TLObject from buffer.
|
|
49
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
50
|
+
*/
|
|
51
51
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<DifferenceEmpty>;
|
|
52
52
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
* Generate buffer from TLObject.
|
|
54
|
+
*/
|
|
55
55
|
write(): Buffer;
|
|
56
56
|
}
|
|
57
57
|
export declare class Difference extends TLObject {
|
|
@@ -72,13 +72,13 @@ export declare class Difference extends TLObject {
|
|
|
72
72
|
state: TypeState;
|
|
73
73
|
});
|
|
74
74
|
/**
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
* Generate the TLObject from buffer.
|
|
76
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
77
|
+
*/
|
|
78
78
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<Difference>;
|
|
79
79
|
/**
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
* Generate buffer from TLObject.
|
|
81
|
+
*/
|
|
82
82
|
write(): Buffer;
|
|
83
83
|
}
|
|
84
84
|
export declare class DifferenceSlice extends TLObject {
|
|
@@ -99,13 +99,13 @@ export declare class DifferenceSlice extends TLObject {
|
|
|
99
99
|
intermediateState: TypeState;
|
|
100
100
|
});
|
|
101
101
|
/**
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
* Generate the TLObject from buffer.
|
|
103
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
104
|
+
*/
|
|
105
105
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<DifferenceSlice>;
|
|
106
106
|
/**
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
* Generate buffer from TLObject.
|
|
108
|
+
*/
|
|
109
109
|
write(): Buffer;
|
|
110
110
|
}
|
|
111
111
|
export declare class DifferenceTooLong extends TLObject {
|
|
@@ -114,13 +114,13 @@ export declare class DifferenceTooLong extends TLObject {
|
|
|
114
114
|
pts: int;
|
|
115
115
|
});
|
|
116
116
|
/**
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
* Generate the TLObject from buffer.
|
|
118
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
119
|
+
*/
|
|
120
120
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<DifferenceTooLong>;
|
|
121
121
|
/**
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
* Generate buffer from TLObject.
|
|
123
|
+
*/
|
|
124
124
|
write(): Buffer;
|
|
125
125
|
}
|
|
126
126
|
export declare class ChannelDifferenceEmpty extends TLObject {
|
|
@@ -133,13 +133,13 @@ export declare class ChannelDifferenceEmpty extends TLObject {
|
|
|
133
133
|
timeout?: int;
|
|
134
134
|
});
|
|
135
135
|
/**
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
* Generate the TLObject from buffer.
|
|
137
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
138
|
+
*/
|
|
139
139
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<ChannelDifferenceEmpty>;
|
|
140
140
|
/**
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
* Generate buffer from TLObject.
|
|
142
|
+
*/
|
|
143
143
|
write(): Buffer;
|
|
144
144
|
}
|
|
145
145
|
export declare class ChannelDifferenceTooLong extends TLObject {
|
|
@@ -160,13 +160,13 @@ export declare class ChannelDifferenceTooLong extends TLObject {
|
|
|
160
160
|
users: Vector<raw.TypeUser>;
|
|
161
161
|
});
|
|
162
162
|
/**
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
* Generate the TLObject from buffer.
|
|
164
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
165
|
+
*/
|
|
166
166
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<ChannelDifferenceTooLong>;
|
|
167
167
|
/**
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
* Generate buffer from TLObject.
|
|
169
|
+
*/
|
|
170
170
|
write(): Buffer;
|
|
171
171
|
}
|
|
172
172
|
export declare class ChannelDifference extends TLObject {
|
|
@@ -189,26 +189,26 @@ export declare class ChannelDifference extends TLObject {
|
|
|
189
189
|
users: Vector<raw.TypeUser>;
|
|
190
190
|
});
|
|
191
191
|
/**
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
* Generate the TLObject from buffer.
|
|
193
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
194
|
+
*/
|
|
195
195
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<ChannelDifference>;
|
|
196
196
|
/**
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
* Generate buffer from TLObject.
|
|
198
|
+
*/
|
|
199
199
|
write(): Buffer;
|
|
200
200
|
}
|
|
201
201
|
export declare class GetState extends TLObject {
|
|
202
202
|
__response__: TypeState;
|
|
203
203
|
constructor();
|
|
204
204
|
/**
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
205
|
+
* Generate the TLObject from buffer.
|
|
206
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
207
|
+
*/
|
|
208
208
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<GetState>;
|
|
209
209
|
/**
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
* Generate buffer from TLObject.
|
|
211
|
+
*/
|
|
212
212
|
write(): Buffer;
|
|
213
213
|
}
|
|
214
214
|
export declare class GetDifference extends TLObject {
|
|
@@ -228,13 +228,13 @@ export declare class GetDifference extends TLObject {
|
|
|
228
228
|
qtsLimit?: int;
|
|
229
229
|
});
|
|
230
230
|
/**
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
231
|
+
* Generate the TLObject from buffer.
|
|
232
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
233
|
+
*/
|
|
234
234
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<GetDifference>;
|
|
235
235
|
/**
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
* Generate buffer from TLObject.
|
|
237
|
+
*/
|
|
238
238
|
write(): Buffer;
|
|
239
239
|
}
|
|
240
240
|
export declare class GetChannelDifference extends TLObject {
|
|
@@ -252,12 +252,12 @@ export declare class GetChannelDifference extends TLObject {
|
|
|
252
252
|
limit: int;
|
|
253
253
|
});
|
|
254
254
|
/**
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
255
|
+
* Generate the TLObject from buffer.
|
|
256
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
257
|
+
*/
|
|
258
258
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<GetChannelDifference>;
|
|
259
259
|
/**
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
* Generate buffer from TLObject.
|
|
261
|
+
*/
|
|
262
262
|
write(): Buffer;
|
|
263
263
|
}
|