title: sendMediaGroup in telegram by ruby
body: <p>I want to send some photos in one message by my bot in telegram.
  I use</p>
  <pre><code>bot.api.sendMediaGroup(chat_id: message.from.id,
  media: [
             {
                  type: 'photo', 
                  photo: arr_r[z].to_s
             }, 
             {
                  type: 'photo', 
                  photo: arr_r[z].to_s
              }
      ])
  </code></pre>
  <p>and have an error</p>
  <p><strong>Telegram API has returned the error. (ok: &quot;false&quot;, error_code: &quot;400&quot;, description: &quot;Bad Request: media not found&quot;) (Telegram::Bot::Exceptions::ResponseError)</strong></p>
  <p>I try to write another code</p>
  <pre><code>media_arr = {media: arr_r[z].to_s}
  bot.api.sendMediaGroup(chat_id: message.from.id, type: 'photo', media: &quot;#{media_arr}&quot;)
  </code></pre>
  <p>and have</p>
  <p><strong>Telegram API has returned the error. (ok: &quot;false&quot;, error_code: &quot;400&quot;, description: &quot;Bad Request: can't parse media JSON object&quot;) (Telegram::Bot::Exceptions::ResponseError)</strong></p>
  <p>In bouth variants
  arr_r = [&quot;&quot;, &quot;AgABLABLABLABLABLAlbjJaiYhDuK_m9n4a8_q50WAAKsvDEb-xS4SCfgmSDNS2GZAQADAgADcwADKQQ&quot;]</p>
  <p>So now i don't know how to fix it...
  I'm hope for your help.</p>