@mtcute/tl 0.1.0 → 0.18.0-rc.5
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/LICENSE +1 -1
- package/README.md +4 -5
- package/api-schema.json +1 -1
- package/app-config.json +1 -0
- package/binary/reader.js +287 -93
- package/binary/writer.js +544 -161
- package/index.d.ts +13461 -1220
- package/index.js +129 -30
- package/mtp-schema.json +1 -1
- package/package.json +14 -10
- package/raw-errors.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright 2023
|
|
1
|
+
Copyright 2023 alina sireneva
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
4
|
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
TL schema and related utils used for mtcute.
|
|
4
4
|
|
|
5
|
-
Generated from TL layer **
|
|
5
|
+
Generated from TL layer **194** (last updated on 20.11.2024).
|
|
6
6
|
|
|
7
7
|
## About
|
|
8
8
|
|
|
@@ -13,7 +13,7 @@ so version `42.0.0` means that this version was generated from TL layer 42.
|
|
|
13
13
|
|
|
14
14
|
- JSON schema, types, binary (de-)serialization and helper functions are generated directly from `.tl` files that are
|
|
15
15
|
automatically fetched from multiple sources and are merged together.
|
|
16
|
-
- Errors are generated from
|
|
16
|
+
- Errors are generated from
|
|
17
17
|
[`errors.csv`](https://github.com/LonamiWebs/Telethon/blob/master/telethon_generator/data/errors.csv)
|
|
18
18
|
and official Telegram errors JSON file.
|
|
19
19
|
- RSA keys info is generated based on manually extracted PEMs from Telegram for Android source code.
|
|
@@ -29,7 +29,7 @@ really need to modify the objects, and modifying them will only lead to confusio
|
|
|
29
29
|
use-cases for mutable TL objects, so you can use exported
|
|
30
30
|
`tl.Mutable` helper type to make a given object type mutable.
|
|
31
31
|
|
|
32
|
-
`tl` is exported as a namespace to allow better code insights,
|
|
32
|
+
`tl` is exported as a namespace to allow better code insights,
|
|
33
33
|
as well as to avoid cluttering global namespace and very long import statements.
|
|
34
34
|
|
|
35
35
|
MTProto schema is available in namespace `mtp`, also exported by this package.
|
|
@@ -40,7 +40,6 @@ const obj: tl.RawInputPeerChat = { _: 'inputPeerChat', chatId: 42 }
|
|
|
40
40
|
console.log(tl.isAnyInputPeer(obj)) // true
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
|
|
44
43
|
RPC errors are also exposed in this package in `tl.errors` namespace:
|
|
45
44
|
|
|
46
45
|
```typescript
|
|
@@ -100,4 +99,4 @@ console.log(writer.result())
|
|
|
100
99
|
Contains RSA keys used when authorizing with Telegram.
|
|
101
100
|
|
|
102
101
|
`old` flag also determines if the client should use the old
|
|
103
|
-
RSA padding scheme.
|
|
102
|
+
RSA padding scheme.
|