From 7865897eceb4f8141769b369b85f85229d487feb Mon Sep 17 00:00:00 2001 From: Painor Date: Sun, 22 Sep 2024 15:47:23 +0100 Subject: [PATCH] Fixed message.edit silently failing in saved messages --- gramjs/Version.ts | 2 +- gramjs/tl/custom/message.ts | 2 +- package-lock.json | 4 ++-- package.json | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gramjs/Version.ts b/gramjs/Version.ts index a45cfb3a..7c6474b5 100644 --- a/gramjs/Version.ts +++ b/gramjs/Version.ts @@ -1 +1 @@ -export const version = "2.25.8"; +export const version = "2.25.10"; \ No newline at end of file diff --git a/gramjs/tl/custom/message.ts b/gramjs/tl/custom/message.ts index b15619e1..25a0a412 100644 --- a/gramjs/tl/custom/message.ts +++ b/gramjs/tl/custom/message.ts @@ -921,7 +921,7 @@ export class CustomMessage extends SenderGetter { async edit(params: Omit) { const param = params as EditMessageParams; - if (this.fwdFrom || !this.out || !this._client) return undefined; + if (this.fwdFrom || !this._client) return undefined; if (param.linkPreview == undefined) { param.linkPreview = !!this.webPreview; } diff --git a/package-lock.json b/package-lock.json index 34595ba5..95823f29 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "telegram", - "version": "2.25.9", + "version": "2.25.11", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "telegram", - "version": "2.25.9", + "version": "2.25.11", "license": "MIT", "dependencies": { "@cryptography/aes": "^0.1.1", diff --git a/package.json b/package.json index 4a9b02dc..11ddef80 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "telegram", - "version": "2.25.9", + "version": "2.25.11", "description": "NodeJS/Browser MTProto API Telegram client library,", "main": "index.js", "types": "index.d.ts", @@ -70,4 +70,4 @@ "node-localstorage": "^2.2.1", "socks": "^2.6.2" } -} +} \ No newline at end of file