Skip to content

Commit 169fd2f

Browse files
committed
fix test
1 parent c6c4ada commit 169fd2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/format.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ export function linkMessage(
12871287
"linkMessage can only be used for supergroups and channel messages. Refusing to transform into link.",
12881288
);
12891289
return fmt`${stringLike}`;
1290-
} else if (chatId >= -1997852516352 && chatId <= -1000000000001) {
1290+
} else if (chatId < -1997852516352 || chatId > -1000000000001) {
12911291
console.warn(
12921292
"linkMessage is not able to link messages whose chatIds are greater than -1000000000000 or less than -1002147483647 at this moment. Refusing to transform into link.",
12931293
);

0 commit comments

Comments
 (0)