Forum Discussion
tuannh
Jun 05, 2023Copper Contributor
Bot send individual chat to User
Hi Teams,
I have Teams tab app and bot using TeamsActivityHandler (Typescript), and I have a logic is MS Bot will send private messages to user (It appears as a chat between bot and user) from Channel when I send a message with command
Ex: In the Channel (team) have 5 members, when I send command like "MessageAllMembers", MS Bot will send individual message for each member (not
Can you help me how to implement this logic or document about it?
Thank so much
- Meghana-MSFTMicrosoftCould you please refer this sample which send messages to all the members of the team - https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-conversation/nodejs
Please check this document https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/get-teams-context?tabs=typescript which talks about getting Teams specific context for your bot.- tuannhCopper ContributorThank for your support, but my logic is bot send private message to user (only in a chat between bot and user), not in group.
- Meghana-MSFTMicrosoftIt seems that your question got cut off after "(not", can you please share your exact requirements once again?