From aa2b8535ef066b2b03a172da3c777a2acd2edc4e Mon Sep 17 00:00:00 2001 From: jameszah <36938190+jameszah@users.noreply.github.com> Date: Tue, 25 Jan 2022 11:05:14 -0700 Subject: [PATCH] Jan 24, 2022 - question about bots --- README.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 476c307..60d1015 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,6 @@ Jan 17, 2022 ESP32-CAM-Video-Telegram_8.8x.ino --- Arduino 1.8.13 / esp32-arduino 1.6.0 ESP32-CAM-Video-Telegram_8.9x.ino --- Arduino 1.8.19 / esp32-arduino 2.0.2 -Jan 24, 2022 - -In response to an email query: - -A telegram bot is like a person receiving and replying to messages. The bot is a simple receive/reply system. When it boots it sends one message to the hard-coded owner of the bot (10 digit number in chat_id), and thereafter it responds to anyone in the telegram universe that sends a message. Obviously a little esp32 cannot respond to millions of messages, but anyone can send it a message. This line below grabs the identity of the person sending a message, and uses that identity to send a message back. You could delete this line, and it would always send messages back your hard-coded identiy. Or check if the caller is you or one of your friends, and then reply to them, or ignore them. - -https://github.com/jameszah/ESP32-CAM-Video-Telegram/blob/87c9ffa764ef58648e143ca038c49ba51b8964bf/ESP32-CAM-Video-Telegram_8.9x.ino#L302 -

Description

@@ -81,3 +73,14 @@ Just remember it is gpio 13 with a big resistor (10 Kohm), active high PIR, and https://github.com/jameszah/ESP32-CAM-Video-Recorder +--- + +Jan 24, 2022 - question about bots + +In response to an email query: + +A telegram bot is like a person receiving and replying to messages. The bot is a simple receive/reply system. When it boots it sends one message to the hard-coded owner of the bot (10 digit number in chat_id), and thereafter it responds to anyone in the telegram universe that sends a message. Obviously a little esp32 cannot respond to millions of messages, but anyone can send it a message. This line below grabs the identity of the person sending a message, and uses that identity to send a message back. You could delete this line, and it would always send messages back your hard-coded identiy. Or check if the caller is you or one of your friends, and then reply to them, or ignore them. + +https://github.com/jameszah/ESP32-CAM-Video-Telegram/blob/87c9ffa764ef58648e143ca038c49ba51b8964bf/ESP32-CAM-Video-Telegram_8.9x.ino#L302 + +