Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/ commands in supergroups not working #62

Open
MTRNord opened this issue Jun 27, 2017 · 2 comments
Open

/ commands in supergroups not working #62

MTRNord opened this issue Jun 27, 2017 · 2 comments

Comments

@MTRNord
Copy link

MTRNord commented Jun 27, 2017

Hi My hubot doesn't listen to slash commands in supergroups. privacy mode on or off no change. only mentions are working. Debug:

[Tue Jun 27 2017 08:40:23 GMT+0000 (UTC)] DEBUG { update_id: 615849531,
  message:
   { message_id: 234,
     from:
      { id: SECRET,
        first_name: 'SECRET',
        username: 'mtrnord',
        language_code: 'de' },
     chat:
      { id: -SECRET,
        title: 'SECRET',
        type: 'supergroup' },
     date: 1498552821,
     text: '/help',
     entities: [ [Object] ] } }
[Tue Jun 27 2017 08:40:23 GMT+0000 (UTC)] INFO Receiving message_id: 234
[Tue Jun 27 2017 08:40:23 GMT+0000 (UTC)] DEBUG Received message: mtrnord said '/help'
[Tue Jun 27 2017 08:40:23 GMT+0000 (UTC)] DEBUG No listeners executed; falling back to catch-all
[Tue Jun 27 2017 08:40:23 GMT+0000 (UTC)] DEBUG Executing listener callback for Message '[object Object]'
@MTRNord MTRNord changed the title / commands in soupergroups not working / commands in supergroups not working Jun 27, 2017
@arcturial
Copy link
Collaborator

The issue seems to be that cleanMessageText method does not remove forward slashes properly when it's in a group chat.

@MTRNord
Copy link
Author

MTRNord commented Jun 28, 2017

Am I correct that for using slash commands the same regex as in privat chats is needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants