1
0
painor 3 жил өмнө
parent
commit
826d127745

+ 1 - 1
gramjs/Version.ts

@@ -1 +1 @@
-export const version = "1.8.2";
+export const version = "1.8.3";

+ 2 - 2
gramjs/crypto/IGE.ts

@@ -14,7 +14,7 @@ class IGENEW {
      * @param cipherText {Buffer}
      * @returns {Buffer}
      */
-    decryptIge(cipherText: Buffer) {
+    decryptIge(cipherText: Buffer): Buffer {
         return Helpers.convertToLittle(this.ige.decrypt(cipherText));
     }
 
@@ -23,7 +23,7 @@ class IGENEW {
      * @param plainText {Buffer}
      * @returns {Buffer}
      */
-    encryptIge(plainText: Buffer) {
+    encryptIge(plainText: Buffer): Buffer {
         const padding = plainText.length % 16;
         if (padding) {
             plainText = Buffer.concat([

+ 2 - 2
package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "telegram",
-  "version": "1.8.2",
+  "version": "1.8.3",
   "lockfileVersion": 2,
   "requires": true,
   "packages": {
     "": {
       "name": "telegram",
-      "version": "1.8.2",
+      "version": "1.8.3",
       "license": "MIT",
       "dependencies": {
         "@cryptography/aes": "^0.1.1",

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "telegram",
-  "version": "1.8.2",
+  "version": "1.8.3",
   "description": "NodeJS MTProto API Telegram client library,",
   "main": "index.js",
   "types": "index.d.ts",