Discovers all unique chat IDs from the WhatsApp Evolution PostgreSQL database.
This function queries the Message table to find all distinct remoteJid values,
which represent unique chat conversations. The results are filtered to remove
null/empty values and limited to prevent memory issues with large datasets.
Parameters
limit: number = 10000
Maximum number of chat IDs to return (default: 10000)
Discovers all unique chat IDs from the WhatsApp Evolution PostgreSQL database.
This function queries the Message table to find all distinct remoteJid values, which represent unique chat conversations. The results are filtered to remove null/empty values and limited to prevent memory issues with large datasets.