AsyncTelegram icon indicating copy to clipboard operation
AsyncTelegram copied to clipboard

sendToChannel

Open unregistered33 opened this issue 4 years ago • 0 comments

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
}

.... `

unregistered33 avatar Jan 16 '22 02:01 unregistered33