Is it possible to configure WebHooks to not return to old messages? "IgnoreOldMessages" parameter
For this, use the / ignoreOldMessages parameter, with which hooks will not be formed on old messages. Webhooks will not be generated for messages older than 5 minutes.
This function is necessary if you work with a large array of messages. In some cases, WhatsApp does not immediately download old messages, which can lead to inconvenient situations with unexpected appearance of hooks on old messages, which can interfere with the workflow. "IgnoreOldMessages" helps avoid this. It is also very important that if your phone loses its internet connection, you may not receive message hooks. Therefore, the function of ignoring old messages with the period you need will help to avoid difficulties with unnecessary or late hooks.
This period can be increased or decreased with / settings oldMessagesPeriod.