AsyncTelegram
AsyncTelegram copied to clipboard
sendToChannel
Thanks for library! One problem. sendToChannel works only one time. `void loop() ..... if ((millis() - temp_start) > 30000) { temp_start = millis(); tm* _tm; time_t utcTime = time(NULL); _tm = localtime(&utcTime);
String str;
char buf[100];
strftime(buf, sizeof(buf), "This is esp32 message at: %A, %B %d %Y %H:%M:%S", _tm);
str = buf;
Serial.println(str); //see it every 30 sec
myBot.sendToChannel(channel_id, str, true);//see it only first time in my channel and in serial log
}
.... `