Skip to content

Commit a6d8193

Browse files
committed
esp01-windowtimer: Send a silent message first to confirm proper operation
1 parent aad4bcb commit a6d8193

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/esp01-windowtimer/esp01-windowtimer.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ void setup() {
104104

105105
telegram.begin();
106106
Serial.printf("Telegram bot @%s started\r\n", telegram.getBotName());
107+
108+
TBMessage msg{};
109+
msg.chatId = BOT_CHAT_ID;
110+
msg.disable_notification = true;
111+
telegram.sendMessage(msg, "Fenster ist offen! Ich erinnere dich in 5 Minuten ans Schließen.");
107112
}
108113

109114
// Loop

0 commit comments

Comments
 (0)