go-chat-bot / bot

IRC, Slack, Telegram and RocketChat bot written in go
MIT License
822 stars 191 forks source link

Support slash commands on Telegram #6

Open fabioxgn opened 8 years ago

fabioxgn commented 8 years ago

Telegram bots by default run in "privacy mode" which only passes commands starting with a forward slash / to bots.

Right now the bot to run on telegram needs privacy mode off, but this is easy fixed just changing the prefix for commands on telegram to /.

doenietzomoeilijk commented 7 years ago

I've just created a PR that would enable this, since the parse() function can now tell a message is coming from Telegram, and modify the prefix accordingly.