1
PHP代码发送代码电文如下,电报:PHP:我想给采用项目符号列表作为电文
<?php
$a=1000;
$b=1200;
$c=1400;
$d="<ol align='left'> <font color=red size='4pt'> Salary statement for the Current month</font><br><li> <font color=blue>Salary of Mr. A is : $a$</font> </li><li> <font color=blue>Salary of Mr. B is : $b$</font></li><br><li> <font color=blue>Salary of Mr. C is : $c$</font></li></ol>";
file_get_contents($GLOBALS[site]."/sendmessage?chat_id=".$chatId."&text=".$d);
?>
输出在电报聊天窗口中就应该像
Salary statement for the Current month
Salary of Mr. A is : 1000$
Salary of Mr. B is : 1200$
Salary of Mr. C is : 1400$
我得到的是,
所有的HTML文本,因为它只是用它们的值替换变量。
伙计们我想发送一些变量和文本的电子邮件聊天的公告列表。它是如何可行的?
电报API不支持任何用于发送消息的标记文本。它仅支持字符串(使用UTF-8编码)。 –
好的兄弟,我可以在文本消息中发送任何电报表情符号吗? 例如:Cick on icon:paperclip:below(显示电报的回形针笑脸) – Ritzor