code: def send_photo(self, peer: Peer, photo: str, caption: str=None, reply: int=None, on_success: callable=None,
                     reply_markup: botapi.ReplyMarkup=None):
          
          if isinstance(reply, Message):
              reply = reply.id
  
          photo = botapi.InputFile('photo', botapi.InputFileInfo(photo, open(photo, 'rb'), get_mimetype(photo)))
  
          botapi.send_photo(chat_id=peer.id, photo=photo, caption=caption, reply_to_message_id=reply, on_success=on_success,
                            reply_markup=reply_markup, **self.request_args).run()
docs: Send photo to peer.
          :param peer: Peer to send message to.
          :param photo: File path to photo to send.
          :param caption: Caption for photo
          :param reply: Message object or message_id to reply to.
          :param on_success: Callback to call when call is complete.
  
          :type reply: int or Message