Facebook Messenger API:如何在消息中换行 [英] Facebook Messenger API:how to break line in a message
问题描述
在 Facebook Messenger 聊天中,我们可以通过按SHIFT+ENTER"来换行.
那么如何通过 Facebook Graph API(Messenger API)来断线.
我在一些答案中看到 Graph API 接受
而不是
并且他们的 API 的其他一些部分似乎接受
.
In Facebook Messenger chat,we can break a line by press "SHIFT+ENTER".
So how to break line by Facebook Graph API(Messenger API).
I've seen in a few answers that the Graph API accepts <center></center>
instead of <br>
and some other parts of their API seem to accept
.
目前是否有任何发送换行符的方法,是否有记录的地方?
Is there currently any way of sending a line break and if there is where it it documented?
推荐答案
如果你使用的是 php,你应该使用 chr(10)
.它的工作原理类似于 '
'
或 '
.您也可以使用
'<center></center>
.它对我有用.
If you are using php, You should be use chr(10)
. Its working as like '
'
or '<br>'
. Also you can use <center></center>
. Its working for me.
这篇关于Facebook Messenger API:如何在消息中换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!