pickupUnreadMessages

Picks up the specified number of unread messages.

Return

An array of pairs containing the message ID and the message itself.

Parameters

limit

The maximum number of messages to pick up.