I am trying to develop city bot for telegram, but meet a problem. After sending message to bot, Telegram sends 2two duplicate requests to a webhook URL. Webhook script works twice and sends twice responses to user. Script - hellobot.php from official telegram docs. Server vps hosting with self-signed SSL, with uploaded cert key to telegram.
From server logs:
149.154.167.209 - - [28/Jun/2016:13:48:00 +0300] "POST /apps/gate.php HTTP/1.0" 200 86 "-" "- 149.154.167.209 - - [28/Jun/2016:13:48:00 +0300] "POST /apps/gate.php HTTP/1.1" 200 86 "-" "- 149.154.167.209 - - [28/Jun/2016:13:48:00 +0300] "POST /apps/gate.php HTTP/1.0" 200 86 "-" "- 149.154.167.209 - - [28/Jun/2016:13:48:00 +0300] "POST /apps/gate.php HTTP/1.1" 200 86 "-" "-
How to fix this?