My configuration uses the Telegram Bot polling mechanism and it works fine with the notify service
I’m not trying to integrate the Telegram Bot into an alarm automation scenario and keep getting these errors while issuing commands to the bot :
OK, at least I can answer my own question regarding responding to telegram_command events. I had just a group chat_id (negative number) in my telegram_bot configuration, that wasn’t working to receive command, but when I added my user id as a chat_id, that allowed the above testmessage automation to work, it would seem the commands are validated by user, not group chat. Example:
telegram_bot:
- platform: polling
api_key: "ABC:XYZ"
allowed_chat_ids:
- -XXXXX # group chat id with my bot - not good enough for /commands
- YYYYYY # my user id - required for accepting /commands reasonable, but directions unclear
Hello, I think your problem, that you need write to command to the bot, not a group. You need to config yaml the telegram gorup and bot ID. And If you write to your bot you can receive the messege to group.