Telegram Bot Commands in groups

Hi all

I have successfully created a Telegrambot + botcommand, and an workflow, which works smooth like butter, but I encounter a minor problem right now:

If I trigger a bot-command in the 1v1 conversation with the bot, the message is picked up by Pipedream.

So: for example:
“/command1” → Trigger works

Now, I added the bot to a group, and then, when I then use the commandmenu in Telegram, and select the same command, the message becomes: “/command1@botname” (adding the @ and the bot name)
This command does not trigger Pipedream!

Any idea why?

If I manual make a message in the group with just the “/command1” the trigger works again…

Hi @dirkpeterc

Are you an admin on the group? You may need permissions to add a bot to a group.

If so, do you see these slash commands from the group in the Source logs area in your Discord Bot source in your Pipedream dashboard?

Hi Pierce,

I am indeed the admin of the Telegram-group (and so is the bot).
I checked the Logs.
See below the results; the first is the trigger with @botname, this DOES NOT trigger the workflow.
Second is the botcommand without the botname, this DOES trigger te workflow

      },
      "text": "/vraag@POMperiumbot",
      "entities": [
        {
          "offset": 0,
          "length": 19,
          "type": "bot_command"
        }
      ]
    }
  }
}
      },
      "text": "/vraag",
      "entities": [
        {
          "offset": 0,
          "length": 6,
          "type": "bot_command"
        }
      ]
    }
  }
}

Hi @dirkpeterc,

I think this is because of the logic inside the Telegram - New bot command received source. I have created a ticket here to improve the source. Kindly subscribe to this ticket to be noticed when the feature landed!

1 Like