小编scl*_*ero的帖子

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

我的电报机器人中有这个键盘:

在此输入图像描述

当我点击右箭头时,我得到这个新键盘:

在此输入图像描述

代码是这样的:

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

我知道sendmessage方法中需要文本,但我正在搜索一种方法或解决方法来发送空消息.

我试过太空或类似的html实体,但我没有成功.

有办法做到这一点?

谢谢.

php keyboard message telegram-bot

7
推荐指数
2
解决办法
2928
查看次数

标签 统计

keyboard ×1

message ×1

php ×1

telegram-bot ×1