Comments (7)
Is there an update on this?
from botbuilder-microsoftteams.
Please try the samples given in Update Message documentation.
Could you please try again by keeping only message text or attachment?
from botbuilder-microsoftteams.
This is similar to what you reported in #125. The code is trying to update a message (1 card) to something that's going to become 2 messages (text + card). That's why it's giving the error "Activity resulted into multiple skype activities".
It's a case that we're aware of and working to enable. Until then, message updates are restricted to instances that will not result in splitting. In fact, I'd recommend only text->text or card->card updates, because card->text or vice versa is also problematic. (It works, but you could see some ugly visual artifacts until the thread is refreshed.)
from botbuilder-microsoftteams.
Thank you for your swift response. Do you have any example in which you can only send cards and not message+card? Since the POST call requires an activity to be send.
(We are able to update simple text message but not cards with the below code)
Activity cardTest = new Activity();
cardTest.withType(ActivityTypes.MESSAGE).withRecipient(activity.from())
.withId(activity.id()).withFrom(activity.recipient()).withText("TEST - 1");
String actId = new BotConnectorImpl(activity.serviceUrl())
.sendToConversation(activity.conversation().id(), activity.id(), cardTest);
new Runnable() {
@Override
public void run() {
try {
Thread.sleep(2000);
System.out.println("Sending world");
new BotConnectorImpl(activity.serviceUrl()).updateConversation(
activity.conversation().id(), actId, new Activity().withId(actId)
.withType(ActivityTypes.MESSAGE).withText("TEST - 2"));
from botbuilder-microsoftteams.
In your snippet above, it looks like withText()
is what adds the text to the activity. Omit the call to withText("World")
when creating the second activity: that way you're doing a card->card update, which should work.
from botbuilder-microsoftteams.
The snippet above is text->text. Can you share the snippet for your attempt to do a card->card update?
from botbuilder-microsoftteams.
Got it working. Thanks 👍
It's a case that we're aware of and working to enable. Until then, message updates are restricted to instances that will not result in splitting. In fact, I'd recommend only text->text or card->card updates, because card->text or vice versa is also problematic. (It works, but you could see some ugly visual artifacts until the thread is refreshed.)
Kindly update / reopen the issue once this is fixed if possible or let me know if there is a channel where we could see changelogs.
from botbuilder-microsoftteams.
Related Issues (20)
- How to post MessageCard JSON Payload on Teams to user in C# HOT 2
- After Click on Allow it is showing Error.Login Consent is not Working in the Teams Desktop and in Browser. HOT 1
- [Dev Issue]The `theme` parameter in the request of `handleTeamsMessagingExtensionConfigurationQuerySettingUrl` is missing? HOT 1
- TextInput is not passing value to HttpPost action in Teams HOT 2
- Teams search app not loading initial items on IOS HOT 3
- Offical HOT 1
- Hello HOT 1
- Cannot add any options in the value section in ActionTypes of thumbnail card. HOT 3
- Bot rate limits update HOT 3
- Adaptive Card Action.Submit is not working on MS Team on iOS as expected HOT 4
- MS Teams bot welcome message HOT 4
- Section's 'startGroup' not working in Teams HOT 4
- Accessbility issue :- Need Alt attribute in O365ConnectorCardSection class HOT 5
- How to configure Bot Framework C# project to send welcome message over Teams channel HOT 6
- Any News: Adaptive Card Input.Date fields only work correctly in English HOT 4
- :<[email protected]>\http +saE2QGoeQMbKMRS6J3vQ>\ HOT 3
- Invocation of adaptive card or custom form works fine on Teams Desktop App but not in Mobile App(iOS) HOT 7
- This repo is missing important files HOT 2
- Node.js Teams botbuilder package: Message extension - Responding with a card inserted into the compose message area, inserts card in compose area for all chat windows within teams app HOT 7
- Teams Bot Node.js - send a proactive message to a particular person that is not part of conversation but has app installed? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botbuilder-microsoftteams.