fix variable
This commit is contained in:
parent
055318047e
commit
fd706d7d29
1 changed files with 1 additions and 1 deletions
2
main.mjs
2
main.mjs
|
@ -58,7 +58,7 @@ function getMessageUrl(msg) {
|
||||||
|
|
||||||
function getTextLink(msg) {
|
function getTextLink(msg) {
|
||||||
const textLinks = (msg.entities ?? []).filter(isTextLink);
|
const textLinks = (msg.entities ?? []).filter(isTextLink);
|
||||||
return textLinks.length ? links[0].url : null;
|
return textLinks.length ? textLinks[0].url : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function isTextLink(msgEntity) {
|
function isTextLink(msgEntity) {
|
||||||
|
|
Reference in a new issue