2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-09-03 15:45:20 +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('t.me') ||
message.text.includes('telegram.me')) && message.text.includes('telegram.me')) &&
excludedGroups !== '*' && excludedGroups !== '*' &&
!(excludedChannels.includes(message.text) || !(excludedChannels.some(channel => message.text.includes(channel)) ||
groupLinks.includes(message.text.split('/joinchat/')[1])) groupLinks.includes(message.text.split('/joinchat/')[1]))
) { ) {
if (isAdmin) { if (isAdmin) {