Microsoft Botframework: How to use Telegram Parameters or sending NewLine?

醉酒当歌 提交于 2020-01-14 14:46:09

问题


I'm trying the new Botframework from Microsoft. When sending a message with \n there is no linebreak in the message. How can I solve that?

In the Telegram API there is an parameter called parse_mode (https://core.telegram.org/bots/api#formatting-options) to activate HTML. Than I could use "<br />" for that, but I don't know how to set this parameter. Can someone help me by sending linebreak or Telegram-parameters?

Greeting Max


回答1:


BotFramework uses Markdown. To represent a paragraph break you need to have a blank line (i.e. "\n\n")

Markdown like this:

This is
paragraph one

This is 
paragraph two

Will be rendered as

This is paragraph one
This is paragraph two

See documentation at: http://docs.botframework.com/connector/message-content/#markdown-paragraphs



来源:https://stackoverflow.com/questions/36448824/microsoft-botframework-how-to-use-telegram-parameters-or-sending-newline

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!