Closed SquaredCircleHunter closed 2 years ago
telegram_bot documentation telegram_bot source (message by IssueLinks)
it looks like it's not safe to assume msg_data["message"] exists
maybe the code changed by #53690 needs to be kept backward compatible. In pseudocode:
if ( msg_data["from"].get("id") not in self.allowed_chat_ids and msg_data["chat"].get("id") not in self.allowed_chat_ids and ( msg_data["message"] is not defined OR msg_data["message"]["chat"].get("id") not in self.allowed_chat_ids ) )
Please let me know if I can somehow get the telegram response in the logs. Wireshark is not an easy option in my network.
I think that we should revert the change that was done in https://github.com/home-assistant/core/pull/53690/files
That change broke how telegram works with in group chats.
Before that change everything woked as expected — when the group chat id is in allowed_chat_ids
then all persons from that chat can send commands to telegram bot. But with that change this is not working anymore.
Makes sense.
Will this be picked up by somebody 'automatically' or do I need to contact somebody directly?
@SquaredCircleHunter Neither of those. Someone has to pick it up. This is an open-source project, powered by volunteers. If you want to pick it up, go ahead. Else it will be sitting here until someone else does.
Ok, will see what I can do, will need to dive into HA change & release mgmt first.
The problem
Since some time, telegram command processing is not working anymore. Sending messages by the bot is still working fine.
The last succesful command was executed on August 5th. Since I usually follow releases quite closely, quite likely it is related to 2021.8 release -> https://github.com/home-assistant/core/pull/53690 and https://github.com/home-assistant/core/issues/53587
My config did not change.
I double checked the group ID, it is still the same.
See further for the logged error.
Setting telegram.ext.dispatcher and homeassistant.components.telegram_bot to debug did not result in extra logs.
No HA event is fired.
What is version of Home Assistant Core has the issue?
2021.8.7
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
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response