def is_spoiler(message_text: str, link: str) -> bool:
    """
    Finds the given link in the message and tells if it's inside spoiler tag or not.
    """
    link_pos = message_text.find(link)
    spoiler_tags_count = message_text[:link_pos].count('||')
    return spoiler_tags_count % 2 == 1