AsyncTelegram2
AsyncTelegram2 copied to clipboard
Bot disconnects after few minutes
I am using https://github.com/cotestatnt/AsyncTelegram2/blob/master/examples/lightBot/lightBot.ino to test my bot and everything works fine for few minutes, the led responds to my on/off commands, but than my serial monitor prints "Unable to connect to Telegram server" over and over again.
The device that I'm using is AI THINKER esp32-cam.
Looked at #13 which sounds similar, but I am using the example as-is, so my loop does have the line myBot.getNewMessage(msg)
.
Also tried to set https://github.com/cotestatnt/AsyncTelegram2/blob/main/src/AsyncTelegram2.h#L20 (FS_SUPPORT) to TRUE
, but there is no extra output in my console, all I get is:
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0030,len:1448 load:0x40078000,len:14844 ho 0 tail 12 room 4 load:0x40080400,len:4 load:0x40080404,len:3356 entry 0x4008059c
Starting TelegramBot...
Test Telegram connection... OK Bot name: @esp32bot
Unable to connect to Telegram server
I've managed to find that the last line is the output of AsyncTelegram2::checkConnection, but this is as far as I could get. Any suggestions?