developer
1382 TopicsBot not receiving message events in shared channels (RSC)
Hi folks, Running into an issue with a bot in Microsoft Teams shared channels. I've configured RSC permissions to listen for new messages. This works as expected in standard channels - I receive events for every new message. However, in shared channels, the behavior is different: I only receive events when the bot is explicitly tagged Regular messages in the channel don’t trigger any events Permissions currently granted: Channel.ReadBasic.All (Application) ChannelMember.Read.All (Application) ChannelMessage.Read.All (Application) Has anyone faced this with shared channels? Is this expected behavior or am I missing something in setup? Thanks!18Views0likes1CommentCannot create new subscription to resource
APP BACKGROUND I have an app that integrate with Microsoft Graph API in order to create subscriptions for some resources. In order to keep subscriptions valid for a long period, I have to update it to continue receiving change notifications on these resources. Basically my workflow for refresh a subscription is: First I try to patch the subscription through this endpoint: PATCH https://graph.microsoft.com/v1.0/subscriptions/{subscription_id} If something fails and I couldn't update it I have a fallback process that deletes it and recreate the subscription after. To delete the subscription I call this endpoint: DELETE https://graph.microsoft.com/v1.0/subscriptions/{subscription_id} And right after I call the endpoint to create the subscription again: POST https://graph.microsoft.com/v1.0/subscriptions/ ISSUE This process works well the most part of the time, but during some hours ( generally during 1~3h) on random days, it stop to work for some random resources. Basically I receive a 404 status from Microsoft when trying to patch or delete the subscription (which is expected on this case), but when I attempt to create a new subscription it returns a 403 error saying: Operation: Create; Exception: [Status Code: Forbidden; Reason: App 'aaaa-bbbb-cccc-dddd-ffff' has reached its limit of '1' 'USERS/AAAAA-BBBB-CCCC-DDDD-EEEE/CHATS/GETALLMESSAGES' subscription on tenant 'aaaaa-hhhhhh-jjjj-uuuu-zzzz How could the subscription already exists if previously it returned a 404 saying that it doesn't exists? SAMPLE REQUEST ID Following the request id a sample of this issue: PATCH https://graph.microsoft.com/v1.0/subscriptions/{subscription_id} date: 2024-07-15T17:08:03 request-id: f5504a6c-b571-4ee4-893c-b96aae64a759 client-request-id: f5504a6c-b571-4ee4-893c-b96aae64a759 result: 404 - Not found DELETE https://graph.microsoft.com/v1.0/subscriptions/{subscription_id} date: 2024-07-15T17:08:03 request-id: 1d3c601d-f761-43f2-8260-c30bf7a3540e client-request-id: 1d3c601d-f761-43f2-8260-c30bf7a3540e result: 404 - Not found POST https://graph.microsoft.com/v1.0/subscriptions/ date: 2024-07-15T17:08:03 request-id: c06196f7-d3c2-4a7d-8e7b-6fc9d63ec496 client-request-id: c06196f7-d3c2-4a7d-8e7b-6fc9d63ec496 result: 403 - Forbidden - App 'aaa-bbb-cc' has reached its limit of '1' 'USERS/DDD-FFF-GGG/CHATS/GETALLMESSAGES' subscription on tenant 'bbb-dddd-aaa-eeeee'588Views1like2CommentsQuestion about barCode.scanBarCode
Dear sir I'm developing Teams mobile application, static tab(Personal app Tab). We need a QR scan feature. However I can't use that. barCode.isSupported() is always false. Is there any restriction on static tab app? Here are my conditions. -. "import { app, authentication, barCode } from '@microsoft/teams-js';" . version : 2.37.0 -. manifest.json : "devicePermissions": ["media"], -. app.initialize() is sucessfully done. I can see the barCode object Unfortunatly, barCode.isSupported() shows false. Android, iOS has the same result. Can you advise how I can use the barCode camera.? Many thanks58Views0likes2CommentsWhen I install my app to a second channel in Teams, the this.onMessage will nto trigger
I have a bot which when installed to a channel will read messages using this.onMessage, if I add another channel to the same team it will also read the messages without installing the bot on that channel. However if a user installs the bot again, to the second channel which some users do, the second channel will not trigger the onMessage listener except when using the @botname command. I cant log errors anything because it just wont trigger. I feel like the context gets screwed up, all the other listeners fire on other channel Any help please?Solved106Views0likes3CommentsApp Validation Issue - Bot must send a proactive welcome message in personal scope
I'm working on a bot application for MS Teams using the Python SDK and encountered a challenge with app validation and the proactive welcome message requirement. What Happened: Initially, our bot handled the welcome message through on_installation_update, but app validation failed with the error: "Bot must send a proactive welcome message in personal scope." To satisfy validation, we added on_members_added_activity to send the welcome message for personal scope, which resolved the validation error. However, this created a new problem: on_members_added_activity is being triggered when we call the Graph API to query chats or users: {graph_url}/me/chats $filter=chatType eq 'oneOnOne' and installedApps/any(a:a/teamsApp/id eq '{teams_app_id}') {graph_url}/users/{user_id}/chats $filter=chatType eq 'oneOnOne' and installedApps/any(a:a/teamsApp/id eq '{teams_app_id}') According to a Stack Overflow discussion (https://stackoverflow.com/questions/57496329/proactive-messaging-bot-in-teams-without-mentioning-the-bot-beforehand), this appears to be a known issue: calling this API triggers a conversation update event even though there were no actual updates, resulting in duplicate events and duplicate welcome messages. Questions: What is the official/recommended way to handle known issue: calling this API triggers a conversation update event? Whats the recommended way to read personal chat history of a user? Should we be using a different approach for this app validation requirement? Any guidance or pointers to official documentation would be greatly appreciated!346Views0likes5CommentsWould Microsoft Teams SDK for Python (Preview) affect marketplace submission
Hi, I need to know if it's possible to publish a custom teams app and get validated to have the app in marketplace for public if it's developed using Teams SDK with python which is mentioned as still in preview. Teams SDK is now generally available for JavaScript and C#, supports Python in developer preview https://learn.microsoft.com/en-us/microsoftteams/platform/bots/overview https://learn.microsoft.com/en-us/microsoftteams/platform/resources/dev-preview/developer-preview-intro?tabs=new-teams-client https://github.com/microsoft/teams.py Thank you!109Views0likes2CommentsAll Teams Bots Not Working At All
This morning all of a sudden all our Teams bots stopped working. These are bots built using bot framework running on Azure Bot Teams Channel. Is this related to the current Teams API issue we talking about? All of a sudden all our client and test bots stopped working. But the Web Channel is working as expected. Only the teams channel. We even checked with ngrok and its not even hitting the service. We checked the app registrations and their credentials as well to ensure not issues there too. Completely lost whats happening. Help?281Views0likes2CommentsAdd Teams Chat Member API call inexplicably Failing
I have tried every possible permutation of this API call that I can imagine. Nothing works. I already started a thread on this, but now it appears to be glitched and I can no longer reply to message sin that thread for some reason. What can I do to contact Microsoft Support and speak directly to their API team? The responses I have gotten all appear to be AI generated and NONE ARE CORRECT. I really need help, from a human, that actually might understand what's going on here. Please help. "#microsoft.graph.aadUserConversationMember' for 'odata.type' is not valid for this operation." <- I am receiving this error despite the fact that we already have several users in this channel with that same type. This API call is intended to invite a user to an existing group chat. This should really be a very simple thing. 1. ALL users in the group chat already have type = '#microsoft.graph.aadUserConversationMember' so the error message doesn't even make sense. 2. This IS a Group chat. NOT a channel. NOT a one on one chat. 3. The Inviter has permission to invite users to this groupchat through the frontend. (and in fact can do so using the frontend.) Why is this API call failing? I have tried scrubbing the API call of special characters, I have tried using the beta endpoint, I have tried several different formats for the input. ERROR: {"error":{"code":"BadRequest","message":"The provided '#microsoft.graph.aadUserConversationMember' for 'odata.type' is not valid for this operation.","innerError":{"date":"2026-02-10T19:11:28","request-id":"XXXXX","client-request-id":"XXXXXX"}}} POST URL: https://graph.microsoft.com/v1.0/chats/IDHERE/members BODY: { "chatType": "group", "\u0040odata.type": "#microsoft.graph.aadUserConversationMember", "user\u0040odata.bind": "https://graph.microsoft.com/v1.0/users/IDHERE", "roles": [] }211Views1like4Comments