From d9b8fac224e73e2853e6634bc79f5da49efe3d27 Mon Sep 17 00:00:00 2001 From: Leonardo Cabeza Date: Sun, 20 Aug 2017 17:15:39 -0500 Subject: [PATCH] (Arregla) Tipo de grupo (#127) (Actualiza) Changelog --- CHANGELOG.md | 6 ++++++ src/utils/admin.js | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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(); }