Replies: 2 comments 6 replies
-
Hi, interesting use case, I think that the issues is in the request you do on fetch - you are using the original request and not creating fully new one. That may result in some inconsistency, it seems like when you returned the result from Cloudflare it contained data related to Try instead of new Request(url.toString(), {
method: request.method,
headers: request.headers,
// Add other request options if necessary
}); You may need to add some other request options or alter the request headers (I am not sure actually), but it also may work as is/ If even this doesn't work, try to create a new response and not return the same from fetch, too. |
Beta Was this translation helpful? Give feedback.
-
Hello again, I found that the message I was getting from my server about the certificate problem, actually was occurring because of my settings in the hosts file some days ago, I made a change to the hosts file for testing a solution but I forget to undo it, so the error message has been changed since last night, now I'm getting another kind of error message on my server: ERROR Getting updates: telego: getUpdates(): internal execution: request call: fasthttp do request: dial tcp4 "The government's firewall IP":443: connect: connection refused |
Beta Was this translation helpful? Give feedback.
-
Hello!
Thank you for all your efforts and grate work!
I'm using a project and in that project your project included, so I need your help about something.
Telegram is restricted in my country and I need to handle all request by some proxy or a tool like Cloudflare's worker
could you please help me about that?
I tried a GitHub project and made a worker on Cloudflare:
https://github.com/manzoorwanijk/telegram-bot-api-worker
and replaced all the Telegram links in your project with the links of that worker, but it didn't work, I'm getting an error:
ERROR Execution error getUpdates: request call: fasthttp do request: tls: failed to verify certificate: x509: certificate is valid for *.mywebsite.com, mywebsite.com, not api.telegram.org
Beta Was this translation helpful? Give feedback.
All reactions