python - Telegram webhooks POST requests have empty payload -
i'm trying register webhooks
telegram bot
using api call setwebhook
.
i got public https url ngrok
local server passed setwebhook
.
whenever new message being sent bot, post request local server expected, however, request payload empty.
any idea?
code please. used curl on web server set webhook.
cheers
edit. used command on wev server. optional ssl/tls cert.
curl -f "url=https://yourdomainname.com/mybot.php" -f "certificate=@/path/to/cert.pem" https://api.telegram.org/bot/setwebhook.php
hope helps man!!
Comments
Post a Comment