core: Too many request to api.telegram.org
Home Assistant release with the issue: 0.81.2
Last working Home Assistant release (if known): 0.76.2
Operating environment (Hass.io/Docker/Windows/etc.): Ubuntu 16.04
Component/platform: Telegram
Description of problem: After update to the 0.81.2 I have noticed so many request to api.telegram.org using PiHole. In last 24 hours it made about 33718 requests. This is happening since the update to 0.81.2. Here is the screenshot from PiHole.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
- platform: polling
#- platform: webhooks
api_key: !secret telegram_api_key
parse_mode: html
allowed_chat_ids:
- !secret telegram_chat_id
Traceback (if applicable):
Additional information:
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 29 (1 by maintainers)
No news? I don’t understand what IP I suppose to put in the hosts file. I have thousands of requests so the pihole log is pretty much useless…
EDIT: sorry, my bad… I forgot that I had “polling” as platform for the telegram_bot. Since I use telegram only in outgoing direction, I changed to “broadcast” and solved the problem!
@NullEnt1ty in the
python-telegram-botpython library v11 is completely broken long polling. All requests are interrupted with a global timeout of 5 seconds. Fix in one line, but they do not want to do it. In the 12th version of the library this is fixed. But they changed the API, which requires a careful update of the HA component. This problem is more than 1.5 years.Answering my own question. The /etc/hosts that matters is in the homeassistant container.