2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-31 14:15:25 +00:00

generated group links excluded from warns

This commit is contained in:
Pouria Ezzati
2017-09-25 19:56:56 +03:30
parent 2b3e0e2eaf
commit 32b117046c

View File

@@ -28,7 +28,10 @@ const removeLinks = async ({ message, chat, reply }, next) => {
...groups.map(group => group.link
? group.link.split('/joinchat/')[1]
: ''),
...excludedGroups
...excludedGroups.map(group =>
group.includes('/joinchat/')
? group.split('/joinchat/')[1]
: group)
];
if (
message.forward_from_chat &&