【问题标题】:telegram webhook passing no data(ssl is ok)电报 webhook 没有传递数据(ssl 可以)
【发布时间】:2017-01-14 08:18:00
【问题描述】:

https://api.telegram.org/bottoken/setWebhook?url=https://urltomybot.php

返回 Webhook 已设置。我没有自签名 ssl 证书,所以不需要公共证书文件的路径。

$json = file_get_contents('php://input');
$data = json_decode($json, true);
var_dump($json);
var_dump($data);

返回

string(0) "" NULL

【问题讨论】:

    标签: php json ssl bots telegram


    【解决方案1】:

    我发现我正在生成空查询购买访问此页面,大声笑。

    file_put_contents('data.txt', $json);
    

    帮助。所以现在我在 data.txt 中得到了 json 数组

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-07-24
      • 2017-11-15
      • 2019-01-05
      • 1970-01-01
      • 1970-01-01
      • 2018-10-17
      • 2021-02-08
      • 1970-01-01
      相关资源
      最近更新 更多