Telegram messages sending NTP datetime

You could do it like this:

val String datetime_string  = Current_DateTime.state.format("%1$tA, %1$td/%1$tm/%1$tY, %1$tH:%1$tM")
sendTelegram("TELEGRAMbot", "SOMETHING Changed to state X at " + datetime_string)
1 Like