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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user