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

createConversationAsync fails #4839

Open
vhensorskyi opened this issue Dec 22, 2024 · 1 comment
Open

createConversationAsync fails #4839

vhensorskyi opened this issue Dec 22, 2024 · 1 comment
Labels
Area: Teams The issue is related to Teams support Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-replied-to Indicates that the team has replied to the issue reported by the customer. Do not delete. customer-reported Issue is created by anyone that is not a collaborator in the repository.

Comments

@vhensorskyi
Copy link

Hi team,

I am migrating my application to CloudAdapter, and I need to implement a flow of sending a DM to a user. There is an example

Microsoft-Teams-Samples/samples/bot-conversation/nodejs/bots/teamsConversationBot.js

in your code but it doesn't seem to be working. It fails with "Unknown attachment type" error. However, when I set activity: context.activity as a message, it starts throwing: "Cannot read properties of undefined (reading 'aadObjectId')". Can you please help to understand how to trigger sending a personal message to a user?

@vhensorskyi vhensorskyi added bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team. labels Dec 22, 2024
@dmvtech
Copy link
Collaborator

dmvtech commented Dec 23, 2024

Hi @vhensorskyi

I just now cloned the sample, installed the packages and ran locally, tunneling through my Azure Bot. I was unable to reproduce the situation and receive an error.

A few questions:

  1. Can you confirm when you get the Unknown attachment type error? Is that only after selecting the Message all members option?
  2. Where exactly are you setting context.activity as message? Are you adding or altering a line?

@dmvtech dmvtech added customer-reported Issue is created by anyone that is not a collaborator in the repository. Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-replied-to Indicates that the team has replied to the issue reported by the customer. Do not delete. Area: Teams The issue is related to Teams support and removed needs-triage The issue has just been created and it has not been reviewed by the team. labels Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Teams The issue is related to Teams support Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-replied-to Indicates that the team has replied to the issue reported by the customer. Do not delete. customer-reported Issue is created by anyone that is not a collaborator in the repository.
Projects
None yet
Development

No branches or pull requests

2 participants