title: How to send a local photo with telegram HTTP API in python?
body: <p>so i got this class :</p>
  
  <pre><code>import os #for getting the directory location
  
  
  class telegramBot(object):
      def __init__(self, token = telegram_token, chat_id = telegram_chat_id):
          self.token = token
          self.chat_id = chat_id
          self.base_url = "https://api.telegram.org/bot{}/".format(token)
  </code></pre>
  
  <p>which contains many methods like sendMessage, replyToMessage and etc..</p>
  
  <p>I want to create a method that sends an image from a LOCAL LIBRARY
  to my telegram channel trough my Bot.</p>
  
  <p><strong>I am looking for something that will look like this:</strong></p>
  
  <pre><code>     def sendImage(self, chat_id, image_path, message)
           url = self.base_url + "sendPhoto?chat_id={}&amp;image_path={}&amp;text={}".format(chat_id, image_path, message)
           response = requests.post(url)
           return response
  </code></pre>
  
  <p>But nothing is working and i can't find answers on the web or at the telegram API page
  Does anyone made it or know how to do it correctly? is there any better way to do it?</p>
  
  <p>thanks</p>