core icon indicating copy to clipboard operation
core copied to clipboard

Telegram Bot Not working correct

Open Peter1980FFM opened this issue 1 year ago • 4 comments

The problem

Telegram Bot not Working Right: Update "None" caused error: "Conflict: terminated by other getUpdates request; make sure that only one bot instance is running" 16:08:54 – (FEHLER) Telegram bot - Die Nachricht ist zum ersten Mal am 14:06:41 aufgetreten und erscheint 228 mal Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running 16:08:54 – (FEHLER) /usr/local/lib/python3.11/site-packages/telegram/ext/updater.py - Die Nachricht ist zum ersten Mal am 14:06:41 aufgetreten und erscheint 228 mal It is not posible to give comands to Home Assistant

What version of Home Assistant Core has the issue?

core-2024.1.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

telegram bot

Link to integration documentation on our website

https://www.home-assistant.io/integrations/telegram_bot/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

Peter1980FFM avatar Jan 17 '24 15:01 Peter1980FFM

Additional Info if you send a Command that not match with a known command in Homeassistant you have to reboot home Assistant to send a new command from Telegram

Peter1980FFM avatar Jan 17 '24 15:01 Peter1980FFM

Same problem here, any idea of the cause ?

theggz avatar Jan 30 '24 21:01 theggz

@Peter1980FFM @theggz could you post yaml of how the service is configured please?

malkstar avatar Feb 08 '24 20:02 malkstar

This is also happening to me, my yaml config is not anything special

telegram_bot:
  - platform: polling
    api_key: snip:snip
    allowed_chat_ids:
      - snip # one
      - snip # two
      - snip # three

mgrandi avatar Feb 14 '24 21:02 mgrandi

Here's my config

# Telegram bot
telegram_bot:
  - platform: polling
    api_key: !secret telegram_api_key
    allowed_chat_ids:
      - 123456

# Notify groups
notify:
  - name: ALL_DEVICES
    platform: group
    services:
      - service: mobile_app_phone1
      - service: mobile_app_phone2
  - name: "Telegram User"
    platform: telegram
    chat_id: 123456

theggz avatar Feb 20 '24 21:02 theggz

Configs are completely normal.

I did manage to replicate this locally by running two HA instances, but I'm guessing no-one is doing that. It's actually an error from the telegram API itself. If there's no API keys being shared then it could be to do with the way the components are started (and stopped). I'm guessing everyone's tried a HA restart? What environments are you running?

malkstar avatar Feb 20 '24 22:02 malkstar

Home Assistant Core installato su debian.

dibummer avatar Mar 13 '24 13:03 dibummer

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.