Results 9 comments of E. N. Hering

Hi again. I'm bringing more light on the problem: I have inserted some code on TgWebhookServer.h handler, so now it looks like: ``` ... private: std::string _handle(const std::string& data, const...

Here is a message received from my Telegram account: ``` Header: = POST /hooks/ HTTP/1.1 Host: x.y X-Forwarded-For: 91.108.6.67 Connection: close Content-Length: 322 Content-Type: application/json Accept-Encoding: gzip, deflate Header: Accept-Encoding...

As the Connection Header had a suspicious value ("close") I tried the (short) instructions from the following URL to keep it alive: https://ma.ttias.be/enable-keepalive-connections-in-nginx-upstream-proxy-configurations/ But still got no reply from the...

Oleg, the problem seems to be here: ``` if (headers.at("_method") == "POST" && headers.at("_path") == _path) ``` As I have not set the webhook using the API, due to the...

Update: I could set a self signed certificate using the API, by issuing the following command: ``` m_pBot->getApi().setWebhook("https://XXX.com/hooks/", InputFile::fromFile("cert-selfsigned.pem", "application/x-pem-file"), 40); ``` But the bot still does not answer.

Hi. I believe I've found the problem. The function below is not setting _path, so _path probably equals "" and will never match the _path Header coming from the server,...

Temporarily solved: ``` std::string _handle(const std::string& data, const std::unordered_map& headers) { // if (headers.at("_method") == "POST" && headers.at("_path") == _path) { // CHANGED TO: if (headers.at("_method") == "POST"){ _eventHandler.handleUpdate(_tgTypeParser.parseJsonAndGetUpdate(_tgTypeParser.parseJson(data))); }...

Hi. I'm writing to tell you that the issue is still present. Can I help in some way to fix it?

Hi. I tried to build and run the tgfx project on Netbeans 7.4 and 8.x. Both IDEs are complaining about this missing jfxsa-run. I got the sources from the subversion...