[Skype] Message formatting: Cannot add break line \n\n into the message?
Bot Info
- SDK Platform: .NET
- SDK Version: SDK 4.6.1
- Active Channels: Skype 7.40.0.151
- Deployment Environment: IIS 7.0
Issue Description
As title, I cannot add break line \n\n or
into the message on Skype
Code Example
var connector = new ConnectorClient(conversation.ServiceUrl);
IMessageActivity activityMessage = Activity.CreateMessageActivity();
activityMessage.ChannelId = conversation.ChannelId;
activityMessage.From = botAccount;
activityMessage.Recipient = userAccount;
activityMessage.Conversation = new ConversationAccount(id: conversation.ConversationId);
activityMessage.Text = "abc \n\n xyz";
activityMessage.Locale = "en-Us";
activityMessage.TextFormat = TextFormatTypes.Markdown;
MicrosoftAppCredentials.TrustServiceUrl(conversation.ServiceUrl.ToString());
var result = connector.Conversations.SendToConversationAsync((Activity)activityMessage);

Which Skype client are you using? I Just tested on windows version 7.40.0.103 and it appears to be working as intended for line breaks like this var reply = activity.CreateReply("kljkj \n\n asdklfj");

Skype version 7.40.0.151. Are there any difference between CreateReply and CreateMessageActivity. I made anything, but still not break line in the skype.
I tried with your code to reproduce this as well, and was unable to reproduce.
This is full code that using to send the message to skype group when bot get the data from database. Conversation object is a model. You can change the other one. `var userAccount = new Microsoft.Bot.Connector.ChannelAccount { Id = conversation.Sender.Id, Name = conversation.Sender.Name };
var botAccount = new Microsoft.Bot.Connector.ChannelAccount
{
Id = conversation.Recipient.Id,
Name = conversation.Recipient.Name
};
var connector = new ConnectorClient(conversation.ServiceUrl);
IMessageActivity activityMessage = Activity.CreateMessageActivity();
activityMessage.ChannelId = conversation.ChannelId;
activityMessage.From = botAccount;
activityMessage.Recipient = userAccount;
activityMessage.Conversation = new ConversationAccount(id: conversation.ConversationId);
activityMessage.Text = message;
activityMessage.Locale = "en-Us";
activityMessage.TextFormat = TextFormatTypes.Markdown;
MicrosoftAppCredentials.TrustServiceUrl(conversation.ServiceUrl.ToString());
var result = connector.Conversations.SendToConversationAsync((Activity)activityMessage);`
hi @JasonSowers on skype for business it's not working with \n\n. I test with bot simulator and web channel it's working. Any suggestion?
Please open a new issue if you are experiencing problems still.