Telegram notifications not working

help me please

tim

Show your raw HTTP request and response log found in the logs/ folder.

tim

No, show your raw HTTP request and response log found in the logs/ folder.

tim

Show your raw HTTP request and response log found in the logs/ folder.

Chiming in here. I imagine OP is having the same issue I am using this mod. Here is my log if it helps.

[2023-12-05 17:21:04] Request

POST /bot6074006548:AAFfwDeEeh60*****qpI/sendMessage HTTP/1.1
Host: api.telegram.org
Content-Type: application/json; charset=en
User-Agent: LiteCart/2.5.3
Content-Length: 121
Connection: Close

{"chat_id":"@MyBotName","text":"Incoming new order 72 from %firsname Smith with a total amount of $10.00."}

[2023-12-05 17:21:04] Response — 419 bytes transferred in 0.229 s

HTTP/1.1 400 Bad Request
Server: nginx/1.18.0
Date: Tue, 05 Dec 2023 22:21:05 GMT
Content-Type: application/json
Content-Length: 73
Connection: close
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Content-Length,Content-Type,Date,Server,Connection

{"ok":false,"error_code":400,"description":"Bad Request: chat not found"}

tim

That looks quite identical to what we are already sending. Apart from a different bot id and chat id and the payload being JSON instead of URL query parameters. I can't say what it wrong. You can use ReqBin at https://reqbin.com/ to manually make requests to Telegram.

View code on GitHub