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