code: def _get_save_messages_photo(session, photo, server, hash):
          
          response = session.fetch("photos.saveMessagesPhoto", photo=photo, server=server, hash=hash)[0]
          return response['id'], response['owner_id']
docs: https://vk.com/dev/photos.saveMessagesPhoto