Telegram bot - Access denied

Hi, I’m running Home Assistant Operating System on a Home Assistant Green. My instance sits behind a NGINX reverse proxy server, and everyhting is working ok e.g. I can access my instance from outside my network, the Home Assistant app connects correctly, etc…

The only issue I have is with the Telegram Bot extension: I’ve correctly created a bot and configured the extension, however I’m getting my log filled with the following error message:

Logger: homeassistant.components.telegram_bot.webhooks
Source: components/telegram_bot/webhooks.py:171
integration: Telegram bot (documentation, issues)
First occurred: 21:49:26 (3 occurrences)
Last logged: 21:50:50

Access denied from ::ffff:91.108.5.38

Which is weird because I’ve left the standard ACL list when configuring the bot:

149.154.160.0/20,91.108.4.0/22

and IPv4 address 91.108.5.38 for which I seem to be getting my error is included in 91.108.4.0/22 (which in fact spans 91.108.4.0 - 91.108.7.255).

Any clue anyone? Not sure why the address I’m getting an error for is in a “IPv6-like” format; I’ve also tried to input that one in the ACL when setting up the bot but I’m receiving error message

Invalid trusted network: Only decimal digits permitted in '::ffff:91' in '::ffff:91.108.5.38'

For further colour - when trying to call the getWebhookInfo method:

https://api.telegram.org/bot/getWebhookInfo

I get error

"Wrong response from the webhook: 401 Unauthorized"

which I guess is exactly because connection from ::ffff:91.108.5.38 is blocked by the Telegram Bot

Try disabling IPv6 on your reverse proxy.

Thank you - that moved things; however, I’m now getting the following error in the log:

Invalid secret token from 91.108.5.38

I’ve deleted and reconfigured the bot to be sure my API key was correctly input, but that didn’t help. Any idea what this means?

Actually - a simple restart of the whole Home Assistant (not just a reload of the component) fixed this. Thank you for your hint @happymeal ! That did it!