Raspberry Remote Control With Telegram


To intercept a new incoming message we create a file action.lua

with this content

Save and exit, when incoming text message is “ping”, Telegram answers us with a text message containing “pong”.

then type

Try to send a message, if all goes well, Telegram answers only on “ping” and not “PING”, we should see something like this

Install the Raspberry Camera, see this tutorial, then create a new folder where we will save the captured photos.

create a new file camera.sh

with this content

save and exit, give it execution permissions

Edit action.lua

add this lines in function on_msg_receive

Leave a Reply

Your email address will not be published. Required fields are marked *