reo7sp / tgbot-cpp

C++ library for Telegram bot API

Home Page:http://reo7sp.github.io/tgbot-cpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webhook not work

okman334 opened this issue · comments

I am trying to run the echobot-webhook-server, but it's seems not work right. I help can get some help, thanks.

image

"https://wb.szokm888.com" this domain is work in nginx. And the nginx proxy forwards to my machine 8080 port. ( TgWebhookTcpServer webhookServer(8080, bot)).
I cannot receive anything from telegram.

Is my code right?

I call the method getWebhookInfo, return SSL error. But my cert is ok. I don't know what's the problem.
{"ok":true,"result":{"url":"https://wb.szokm888.com","has_custom_certificate":true,"pending_update_count":1,"last_error_date":1669714616,"last_error_message":"SSL error {error:0A000086:SSL routines::certificate verify failed}","max_connections":40,"ip_address":"35.220.203.170"}}