scl*_*ero 7 php keyboard message telegram-bot
我的电报机器人中有这个键盘:
当我点击右箭头时,我得到这个新键盘:
代码是这样的:
$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实体,但我没有成功.
有办法做到这一点?
谢谢.
我不认为有办法做你想做的事。
考虑一下:
https://api.telegram.org/botYOURTOKEN/sendMessage?chat_id=ID&text=
Run Code Online (Sandbox Code Playgroud)
由于连空格都不被接受,因此没有其他字符可以被编码来表示“虚无”。
| 归档时间: |
|
| 查看次数: |
2928 次 |
| 最近记录: |