Implementation of get messages list
Implementation of "getMessagesList"