Sometimes poll conflict warnings are issued when one getUpdates request is not properly received before another one is sent. This is usually caused by an unstable connection to Telegram API server.
Fix: store the timestamp at when the last warning issued. Bot shall only notify the admin when the last seen alarm is within 60 seconds.
Sometimes poll conflict warnings are issued when one
getUpdates
request is not properly received before another one is sent. This is usually caused by an unstable connection to Telegram API server.Fix: store the timestamp at when the last warning issued. Bot shall only notify the admin when the last seen alarm is within 60 seconds.
Suggested by @ jqqqqqqqqqq.