question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Group chats reply

See original GitHub issue

Context

  • 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
aalyokhincommented, Mar 19, 2019

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…

1reaction
marcoreinholdcommented, Jun 12, 2018

Maybe solved already… anyway: This should work with the command-parts middleware. https://github.com/telegraf/telegraf-command-parts

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found