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 Ch...
Meghana-MSFT
Jun 05, 2023Bronze Contributor
Could 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.
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.
- tuannhJun 06, 2023Copper 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-MSFTJun 06, 2023Bronze ContributorIt seems that your question got cut off after "(not", can you please share your exact requirements once again?
- tuannhJun 07, 2023Copper ContributorMy logic is I'm in channel including 5 members, when I send a command like "Message All Member" or another one, the MS BOT will send private message for each user (It appears as a chat between bot and user not in channel)