Is it possible to communicate with a bot from Tab app in meeting chat?

Leo Messi 20 Reputation points
2023-08-29T06:22:10.37+00:00

I have a notification bot which I added to meeting X. I created the bot using this sample- https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/meetings-notification/nodejs.

I also have a tab app which I added to the same meeting X. I created the Tab app using this sample-

https://github.com/OfficeDev/TeamsFx-Samples/tree/v2.1.0/graph-toolkit-one-productivity-hub

We can communicate with the bot in the chat by mentioning the bot and specifying a command like the screenshot below which then results in the bot carrying out an action:
User's image

My question is:
Is it possible to make the same communication with the bot using our tab app in the meeting chat? I believe it is possible since the bot is essentially an API that accepts posted messages. I want to be able to send a message from the tab app to the meeting chat such that the message will include i)mention/call to the bot, and ii)a command to the bot

just like how we sent a message to the bot by manually typing in the meeting chat.

How can I achieve this functionality?

Microsoft Teams Development
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.