Closed swim89 closed 3 years ago
Using the default configuration TelegramErrorLogger should write a logfile with alla the errors, can you post it ?
Hi, it doesn’t write in the file if I run the bot from telegram. If I launch it from the browser it writes there but I can’t run commands like “/start” or others…
The webhook url is correctly configured ? How are you managing the SSL certificate?
How can I check both of your requests?
https://core.telegram.org/bots/api GetWebhookInfo should give you the URL where Telegram will forward the requests and should ne the address of the webserver running your bot script.
You van view the info of the SSL CERT by navigating with https on your bot script url
Oh sure, already checked them. The url is correct and the SSL certificate is issued by zerossl.com
It's strange.
Try to pur this at the start of your script:
file_put_contents("test.txt", "Test")
And check if the file is written after you send a message to your bot.
If not I'll check with my hosting provider if it blocks incoming connections from the telegram's servers.
Same. If I run the code from the browser it creates the file you suggested. Not from the bot. I tried to send "/start" but nothing was created.
hello there. i can help you right now on my telegram id. im here: @***
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
It's strange. Try to pur this at the start of your script:
file_put_contents("test.txt", "Test")
And check if the file is written after you send a message to your bot.
If not I'll check with my hosting provider if it blocks incoming connections from the telegram's servers.
Hi @Eleirbag89 I tried it but nothing was written into the file...any other suggestions?
Hi guys! I'm having some issues on bot, it doesn't answer me on telegram but the code is correct (it answered in the past and nothing has changed).
How can I debug the code to see if everything is good? Could be a problem of SSL certificate?
This is the simple code I used to test the bot after the issue:
But it doesn't answer me :(