Forum Discussion
gagsbhatnagar
Dec 22, 2020Copper Contributor
MS Teams Bot Event Not Fired when message is sent from outside the Teams Bot
Hello, I am sending a message on an existing conversation to my MS Teams Chat bot from outside i.e. a Windows Forms Application. ChannelAccount userAccount = originalActivity.From;
Ch...
Nikitha-MSFT
Microsoft
Dec 28, 2020gagsbhatnagar - when you use the message back functionality teams directly send the displaytext mentioned in the card. Are you not receiving the message?
gagsbhatnagar
Dec 31, 2020Copper Contributor
Nikitha-MSFT I am receiving the message in teams. However, I need to capture the message received in my bot code so that I can process it. Please see the documentation - https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-long-operations-guidance?view=azure-bot-service-4.0
In the above documentation, protected override OnEventActivityAsync is supposed to be invoked when the message is received by the bot.
In the above documentation, protected override OnEventActivityAsync is supposed to be invoked when the message is received by the bot.
- Nikitha-MSFTJan 06, 2021
Microsoft
gagsbhatnagar - When you are sending message from the azure did you @mention the bot in the message? Are you sending message to team/Group/personal chat between user &bot? Could you please share the repro steps?
- gagsbhatnagarJan 15, 2021Copper ContributorCan I instead use Message Extensions for my use case to manage long running process.
https://docs.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/what-are-messaging-extensions- Nikitha-MSFTJan 20, 2021
Microsoft
gagsbhatnagar - Yes, you can use Message extension.
- gagsbhatnagarJan 15, 2021Copper Contributor
Nikitha-MSFT I did not use @mention in the Activity message that I am sending as a personal chat between Bot and user. I tried using @mention in my code but it still did not result in bot event being triggered even though the message that I sent from outside the bot code appeared in the chat bot window.