witnessmenow / Universal-Arduino-Telegram-Bot

Use Telegram on your Arduino (ESP8266 or Wifi-101 boards)
MIT License
1.12k stars 306 forks source link

Update for lower resoruce boards #330

Closed gmcode85 closed 9 months ago

gmcode85 commented 1 year ago

On the Arduino Uno (and other ATmega based boards) an int stores a 16-bit (2-byte) value. On the Arduino Due and SAMD based boards (like MKR1000 and Zero), an int stores a 32-bit (4-byte) value.

This is a better type, as the first thing update_id is compared with, is another long "last_message_received". and the value from telegram is larger than 2 bytes

it will fix the multiple issues raised for low resource boards.

witnessmenow commented 9 months ago

Thank you