def extract_thread_ts(link):
    """
    Get the thread timestamp from the message link

    :param link: permalink of the message

    :return: return the thread timestamp string
    """
    if "thread" in link:
        return link[-16:]
    else:
        return None