Microsoft Botframework:如何使用电报参数或发送换行符? [英] Microsoft Botframework: How to use Telegram Parameters or sending NewLine?
问题描述
我正在尝试Microsoft的新Botframework.使用\n
发送消息时,消息中没有换行符.我该怎么解决?
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?
在Telegram API中,有一个名为 parse_mode 的参数( https://core.telegram.org/bots/api#formatting-options )以激活HTML.比我可以使用< br/>"为此,但我不知道如何设置此参数.有人可以通过发送换行符或电报参数来帮助我吗?
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?
问候 最高
推荐答案
BotFramework使用Markdown.要表示段落分隔符,您需要有一个空行(即"\ n \ n")
BotFramework uses Markdown. To represent a paragraph break you need to have a blank line (i.e. "\n\n")
降价是这样的:
This is
paragraph one
This is
paragraph two
将呈现为
This is paragraph one
This is paragraph two
请参阅以下文档: http://docs.botframework.com/connector/message-content/#markdown-paragraphs
这篇关于Microsoft Botframework:如何使用电报参数或发送换行符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!