Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send proactive DM using javascript #1460

Open
yashgandhi-32 opened this issue Nov 22, 2024 · 1 comment
Open

Send proactive DM using javascript #1460

yashgandhi-32 opened this issue Nov 22, 2024 · 1 comment

Comments

@yashgandhi-32
Copy link

I am trying to send a proactive direct message (DM) in Microsoft Teams using the following ConversationParameters reference:



{
  isGroup: false,
  bot: {
    id: data.bot.id,
    name: data.bot.name,
  },
  channelData: {
    tenant: {
      id: tenantId,
    },
  },
  members: [
    {
      id: conversationId,
    },
  ],
} as ConversationParameters;

And then calling continueConversationAsync like this:

await this.cloudAdapterService.continueConversationAsync(
  appId,
  ref,
  async (context) => {
    await context.sendActivity({ attachments: [data.attachment] });
  },
);

However, this approach is failing. Can you guide me on how to properly send a proactive DM to a user without having an existing context, given that I have the userAadObjectId and userId (29:...) stored?

Hi @yashgandhi-32! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant