title: Export all Twilio programmable chat messages
body: <p>I am trying to export the contents of a chat channel in Twilio Programmable Chat for a client's records. Twilio limits to batches of 100 messages, however I can't figure out how to page through the results, i.e. get messages 101-200.</p>
  <pre><code>$messages = $twilio-&gt;chat-&gt;v2-&gt;services(&quot;my_service_id&quot;)-&gt;channels('my_channel_id')-&gt;messages-&gt;read([],100);
  </code></pre>
  <p>I can't seem to find any documentation on doing this in PHP either, but the above returns the first 100 messages of the channel.</p>