def list(self, search=False, **kwargs):
kwargs["<STR_LIT>"] = search<EOL>return self.get_instances(kwargs)<EOL>
Returns a list of :class:`Message` objects and a pager dict.

:Example:

messages, pager = client.messages.list()

:param bool search:     If True then search messages using `ids`, `sessionId`, and/or `query`. Default=False
:param int  page:       Fetch specified results page. Default=1
:param int  limit:      How many results on page. Default=10
:param str  ids:        Find message by ID(s). Using with `search`=True.
:param str  sessionId:  Find messages by session ID. Using with `search`=True.
:param str  query:      Find messages by specified search query. Using with `search`=True.