Group chats reply
See original GitHub issueContext
- Telegraf.js Version: 3.21.2
- Node.js Version: 10.1.0
- Operating System: Ubuntu 16.04.3
Expected Behavior
bot.hears
triggers comand handler if message from group
Current Behavior
bot.hears
doesn’t trigger comand handler if message from group
Steps to Reproduce
I have next code
const helpResp = 'test';
bot.telegram.getMe().then((botInfo) => {
bot.options.username = botInfo.username;
bot.hears(/\/help(@botname)?/, (ctx) => ctx.replyWithMarkdown(helpResponse));
});
Bot replies in private chat on /help
and /help@botname
commands, but doesn’t reply in group
Messages from group are in logs, but bot do not response to chat
I will appreciate any help
I think it related with #134
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Reply to specific messages on your iPhone, iPad, and iPod ...
Type your message, then tap the Send button . You can reply to a specific message in conversations with one person and in...
Read more >How to fix group message replies that appear as individual ...
If you're not all using an Apple device, you might find your group messages break down into individual replies.
Read more >How to Set up Group Messages to Reply to All Recipients
How to Set up Group Messages to Reply to All Recipients. Objective. Send a message to a group of recipients who respond within...
Read more >Create & respond to messages - Google Groups Help
You can read and respond to messages using Google Groups or email, depending on how the group is set up. Respond via Google...
Read more >How to Reply to a Single Person in iPhone Group MMS?
The group MMS feature of the iPhone Messages application enables you to send a message to many contacts at one time, which is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is truly amazing guys. I have spent around 6 hours in total during a few days, trying to figure out why a bot doesn’t reply to a group chat. Previously wasn’t able to find this issue to read about setting
options.username
, which has helped. The main thing is that it’s absolutely absent in the documentation…Maybe solved already… anyway: This should work with the command-parts middleware. https://github.com/telegraf/telegraf-command-parts