botframework-sdk
botframework-sdk copied to clipboard
Ability to Retrieve and Update Existing Teams Messages in Bot Framework Composer
I am currently developing a bot using Bot Framework Composer integrated with Microsoft Teams. While Composer provides the UpdateActivity method to modify messages, there is a critical limitation:
UpdateActivity only works if the bot already has the original Adaptive Card payload stored.
There is no API to fetch the existing message (by activityId) from Teams using the Bot Framework.
Microsoft Graph API supports GET /chats/{chat-id}/messages/{message-id}, but:
The Bot Framework conversation.id (a:...) does not directly map to Graph chat.id (19:...).
Graph does not return the original Adaptive Card JSON that can be reused for updates.