PHP的电报机器人发送文本与@问题

时间:2018-07-06 08:57:25

标签: php bots telegram vps

我今天出现问题了,不知道为什么:| 文字中有@时,它将不起作用

Example :
if ($text == 'send') {
bot('sendaudio',[
'chat_id'=>$chat_id,
'audio'=>new CURLFile("data/music.mp3"),
'title'=>"nil", <-----// When used @ not work 
'performer'=>"nil", <-----// When used @ not work 
'caption'=>"@Example", <-----// When used @ not work 
'reply_markup'=>$home,
]);
}

我在vps主机上运行我的机器人

1 个答案:

答案 0 :(得分:0)

我认为您必须使用\\

转义@