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

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -