title: Telegram bot sendPhoto not working
body: <p><strong>What I'm trying to do</strong> is retrieving profile photos from a user and sned them for another, all by PHP.</p>
  
  <p><strong>The problem is</strong> when I send photos using <code>file_id</code> string, all of the photos sent to user are the same single picture!</p>
  
  <p>I've not really run that but I'm sending my own photos to myself for testing the functionality and the result is my current telegram profile picture, every time.</p>
  
  <p><strong>My code:</strong></p>
  
  <pre><code>&lt;?php
  define('my_id', '12345678');
  
  $userPhotos = apiRequestJson("getUserProfilePhotos", array('user_id' =&gt; my_id, 'offset' =&gt; 0, 'limit' =&gt; 1));
  
  apiRequestJson("sendPhoto", array('chat_id' =&gt; my_id, 'photo' =&gt; $userPhotos['photos'][0][0]['file_id']));
  apiRequestJson("sendPhoto", array('chat_id' =&gt; my_id, 'photo' =&gt; $userPhotos['photos'][0][1]['file_id']));
  ?&gt;
  </code></pre>
  
  <p><strong>Link to the telegram bot api:</strong> <a href="https://core.telegram.org/bots/api" rel="nofollow">https://core.telegram.org/bots/api</a></p>
  
  <p>I'd be thankfull for any help.</p>