Good afternoon, I recently deployed my Telegram bot on PythonAnywhere using WEBHOOK technology.
Everything worked perfectly.
I replaced part of the webhook path with dots. To insert this into the message subject.
91.108.5.4 - - [07/Nov/2025:21:26:51 +0000] "POST /webhook/1cb4b47e6.........7977705b1e9d7d60ec6e HTTP/1.1" 200 2 "-" "-" "91.108.5.4" response-time=0.762
91.108.5.4 - - [08/Nov/2025:03:04:59 +0000] "POST /webhook/1cb4b47e6.........7705b1e9d7d60ec6e HTTP/1.1" 200 2 "-" "-" "91.108.5.4" response-time=0.482
91.108.5.4 - - [08/Nov/2025:03:05:02 +0000] "POST /webhook/1cb4b47e6........b1e9d7d60ec6e HTTP/1.1" 200 2 "-" "-" "91.108.5.4" response-time=0.223
91.108.5.4 - - [08/Nov/2025:11:34:44 +0000] "POST /webhook/1cb4b47.......d60ec6e HTTP/1.1" 200 2 "-" "-" "91.108.5.4" response-time=0.929
Everything is fine in the error file; I fixed all errors when deploying the bot.
At this time
08/Nov/2025:11:34:44 +0000
the last request came from Telegram
I thought that maybe the webhook was broken, but using my Python script, I set up an address to receive responses and requests from Telegram.
04:44 ~/my_telegram_bot (master)$ python3 setup_webhook.py
Status: 200
Response: {'ok': True, 'result': True, 'description': 'Webhook is already set'}
But after that, no new requests were received.
Everything is fine in the server log file as well.
2025-11-07 14:13:08 *** ПОЛЬЗОВАТЕЛЬ НАЖАЛ КОМАНДУ 'START' ***
2025-11-07 21:26:50 *** ПОЛЬЗОВАТЕЛЬ НАЖАЛ КОМАНДУ 'START' ***
2025-11-08 03:04:59 *** ПОЛЬЗОВАТЕЛЬ НАЖАЛ КОМАНДУ 'START' ***
2025-11-08 03:05:02 *** ПОЛЬЗОВАТЕЛЬ НАЖАЛ КОМАНДУ 'START' ***
2025-11-08 11:34:43 *** ПОЛЬЗОВАТЕЛЬ НАЖАЛ КОМАНДУ 'START' ***
The last thing I worked on was configuring the MySQL client in my code, as well as working on the bot's database queries. After the new changes, I stopped receiving new requests from Telegram (perhaps they had stopped coming earlier, but I only noticed it while testing my new code).
But I canceled the new code, and nothing changed. Even with the working code, no responses are coming in. But, in my opinion, it's not even about the code. Even with a non-working code, the request from Telegram should be coming to the server. Whether I can process it or not is my problem, but the requests are not coming in.
I apologize in advance if anything is unclear. I used DeepL Translator to write this message.