2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-31 06:05:22 +00:00

fixed no warning for channel links

This commit is contained in:
Pouria Ezzati
2017-10-30 22:11:51 +03:30
parent 564545e818
commit 8e4f01ce58

View File

@@ -41,7 +41,7 @@ const removeLinks = async ({ message, chat, reply, state }, next) => {
(message.text.includes('t.me') ||
message.text.includes('telegram.me')) &&
excludedGroups !== '*' &&
!(excludedChannels.includes(message.text) ||
!(excludedChannels.some(channel => message.text.includes(channel)) ||
groupLinks.includes(message.text.split('/joinchat/')[1]))
) {
if (isAdmin) {