douhuilin1152
2017-09-16 15:52
浏览 91
已采纳

如何在电报机器人中发送空消息?

I have this keyboard in my telegram bot:

enter image description here

When i click the right arrow i get this new keyboard:

enter image description here

the code is this:

    $url = $GLOBALS["website"]."/sendMessage?chat_id=".$chatID."&text=''&parse_mode=html&reply_markup=".json_encode($keyboard3);
    file_get_contents($url);

I know that text is required in sendmessage method, but i'm searching a way or workaround to send an empty message.

I've tried with space or similar html entity, but i did not suceed.

There is a way to do this?

Thank you.

2条回答 默认 最新

相关推荐 更多相似问题