Empty message body in receive messages from telegram bot

时间:2016-08-31 16:53:31

标签: bots telegram

We are using telegram bot webhook method and our website ssl is CloudFlare free ssl, telegram bot works and telegram call our csharp api, but text of messages that telegram send to our api is empty.

Anybody could guide me about this issue.

1 个答案:

答案 0 :(得分:1)

在php项目中遇到同样的问题。在文档中,他们写的请求将通过HTTPS POST。但我收到了空数据。解决方案:使用file_get_contents(php:// input)而不是尝试从$ _POST获取数据