Skip to content

Commit

Permalink
Fixed message.edit silently failing in saved messages
Browse files Browse the repository at this point in the history
  • Loading branch information
painor committed Sep 22, 2024
1 parent ab85b03 commit 7865897
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gramjs/Version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "2.25.8";
export const version = "2.25.10";
2 changes: 1 addition & 1 deletion gramjs/tl/custom/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ export class CustomMessage extends SenderGetter {

async edit(params: Omit<EditMessageParams, "message">) {
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;
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -70,4 +70,4 @@
"node-localstorage": "^2.2.1",
"socks": "^2.6.2"
}
}
}

0 comments on commit 7865897

Please sign in to comment.