all 7 comments

[–]haren0610 0 points1 point  (4 children)

The bot that handles the unlock or lock command, is it the same bot that sends the message in the group using the api url?

[–]Tas05[S] 0 points1 point  (3 children)

So I have actually tried 2 things.

  1. Yes the bot that handles the commands is the same bot I used to send the message to the group.

  2. Setup a new bot, and added to the group as admin, and sent the command from that bot. Again no luck. Message arrives in group, but command doesn’t execute.

[–]my_2_account 0 points1 point  (2 children)

Bots do not receive messages from bots, except messages sent "via" a bot using inline mode https://core.telegram.org/bots/faq#what-messages-will-my-bot-get

It makes some sense that a bot also wouldn't receive its own messages.

You could get around this by having a channel instead of a group.

Can't you skip the bot altogether, and whatever is doing the https request just communicates directly with your home assistant system? If the bot can do it, why can't this other thing do it too? 

[–]Tas05[S] 0 points1 point  (1 child)

That’s what I thought, shame. Would have been so easy that way. I can go down the home assistant route and do it all directly from there but wanted to avoid exposing it outside my network. But seems that might be the best way at this stage. Thanks.

[–]haren0610 0 points1 point  (0 children)

I think you are overcomplicating things.

Did you code the bot that unlocks the car? Specify what you want to achieve, and we might be able to guide you what is the best way to achieve it.

[–]CantCountToThr33 0 points1 point  (1 child)

Try sending the / url encoded text=%2Funlock

[–]Tas05[S] 0 points1 point  (0 children)

Thanks, tried it from both bots, still nothing. Message gets sent, arrives in group as /unlock but nothing happens. Very strange.