title: Post Image to Telegram Channel via Telegram Bot
body: <p>I have a problem with sending a photo to channel using a bot. I try to find an example how to do this. I have this code:</p>
  
  <pre><code>SendPhoto sendPhoto = new SendPhoto();
  sendPhoto.setCaption("My Caption!");
  sendPhoto.setNewPhoto(new File("/Users/user/Desktop/photo.png"));
  sendPhoto.setChatId("@test_channel");
  </code></pre>
  
  <p>Also, I have <code>apiToken</code>. But I can't understand how to send this photo to channel. Can someone help me in this?</p>