Skip to content

Commit 8e4f01c

Browse files
committed
fixed no warning for channel links
1 parent 564545e commit 8e4f01c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handlers/messages/removeLinks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const removeLinks = async ({ message, chat, reply, state }, next) => {
4141
(message.text.includes('t.me') ||
4242
message.text.includes('telegram.me')) &&
4343
excludedGroups !== '*' &&
44-
!(excludedChannels.includes(message.text) ||
44+
!(excludedChannels.some(channel => message.text.includes(channel)) ||
4545
groupLinks.includes(message.text.split('/joinchat/')[1]))
4646
) {
4747
if (isAdmin) {

0 commit comments

Comments
 (0)