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

Activity Attachments list does not have the file listed #4772

Open
avilabiel opened this issue Oct 16, 2024 · 2 comments
Open

Activity Attachments list does not have the file listed #4772

avilabiel opened this issue Oct 16, 2024 · 2 comments
Assignees
Labels
Area: Teams The issue is related to Teams support

Comments

@avilabiel
Copy link

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.

Versions

What package version of the SDK are you using: 4.16.0
What nodejs version are you using: v16.20.1
What browser version are you using: Chrome
What os are you using: MacOS

Describe the bug

The activity does not have the file on activity.attachments when the file is sent from a chat. The file does exist on activity.attachments when is sent from a personal tab though.

I see some people complaining about a similar issue on Microsoft Community, but no updates from MS since July (see here).

To Reproduce

Steps to reproduce the behavior:

  1. Add your bot to a chat
  2. Send a file
  3. See the activity.attachments doesn't have the file.

Expected behavior

The activity.attachments should have the file as it happens in the Personal Chat (see the images below).

Screenshots

I sent a message Message + Attachment with a file attached called logo.png. The results:

From the Personal Chat tab with the bot:
Image

From the new :
Image

Additional context

I already added the following ChannelMessage.Read.Group and ChatMessage.Read.Chat to RSC permissions on the Bot manifest as the documentation suggests.

@avilabiel avilabiel 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 Oct 16, 2024
@stevkan stevkan self-assigned this Oct 17, 2024
@stevkan stevkan assigned ceciliaavila and unassigned stevkan Oct 31, 2024
@stevkan
Copy link
Collaborator

stevkan commented Oct 31, 2024

@ceciliaavila - I tested this using v4.16.0 and v4.22.2 and the issue appears to exist in both versions. Can you please verify if this is an SDK issue or a Teams issue?

@ceciliaavila
Copy link
Collaborator

@stevkan, @avilabiel, Hi!
According to Teams' documentation, sending and receiving files through the Teams bot API is only supported in personal scope.

image

@tracyboehrer tracyboehrer added Area: Teams The issue is related to Teams support and removed 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 Nov 5, 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
Projects
None yet
Development

No branches or pull requests

4 participants