Method: FORCAST::Telegram::Send#sendPhoto

Defined in:
lib/forcast/utils/telegram.rb

#sendPhoto(url_imagen, message) ⇒ Object



35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/forcast/utils/telegram.rb', line 35

def sendPhoto(url_imagen,message)
  json_recived = constructor do
      self.metodo = :post
      self.url = "/sendPhoto?"
      self.url += "chat_id="+self.chat_id.to_s
      self.url += "&photo="+url_imagen
      self.url += "&caption="+message
      self.url += "&parse_mode=HTML" 
      self.json_send = {}
  end

end