@staticmethod
def _get_messages_upload_server(session, peer_id):
    """
        https://vk.com/dev/photos.getMessagesUploadServer
        """
    response = session.fetch('photos.getMessagesUploadServer', peer_id=peer_id)
    return response['upload_url']
