lukefx / hubot-telegram

Hubot adapter for Telegram
MIT License
160 stars 42 forks source link

Fix slash commands not working in group chats with robot.respond #34

Closed nspacestd closed 8 years ago

nspacestd commented 8 years ago

As per the hubot documentation callbacks registered with robot.respond are only triggered when the command name is preceded by the robot name or alias, so setting robot.alias to '/' makes robot.respond react to slash commands. This doesn't work in group chats because the leading slash is removed by the adapter before the message is forwarded to the robot.