Skip to content

Commit

Permalink
(Arregla) Tipo de grupo (#127)
Browse files Browse the repository at this point in the history
(Actualiza) Changelog
  • Loading branch information
leocabeza authored Aug 20, 2017
1 parent 04a7ba6 commit d9b8fac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/utils/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit d9b8fac

Please sign in to comment.