diff --git a/CHANGELOG.md b/CHANGELOG.md index 040bdc2..467e7e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ ## [Unreleased] +## 3.2.1 (2017-08-20) + +### Corregido + +- Se agregó un tipo nuevo de grupo + ## 3.2.0 (2017-08-20) ### Agregado diff --git a/src/utils/admin.js b/src/utils/admin.js index 195253d..6e23baa 100644 --- a/src/utils/admin.js +++ b/src/utils/admin.js @@ -51,11 +51,11 @@ const verifyAndSendUrl = (bot, msg, redisClient) => { * @param {boolean} privateChat */ const verifyGroup = (msg, cb, mainGroup = true, adminGroup = false, privateChat = false) => { - if (mainGroup && msg.chat.type === 'group' && msg.chat.id.toString() === groupId) { + if (mainGroup && ['group', 'supergroup'].includes(msg.chat.type) && msg.chat.id.toString() === groupId) { return cb(); } - if (adminGroup && msg.chat.type === 'group' && msg.chat.id.toString() === adminGroupId) { + if (adminGroup && ['group', 'supergroup'].includes(msg.chat.type) && msg.chat.id.toString() === adminGroupId) { return cb(); }