import ssl
import socket


def check_http2_support(url: str) -> bool:
    """
    Checks if a URL supports HTTP/2 protocol.
    Returns True or False.
    """
    context = ssl.create_default_context()
    context.set_alpn_protocols(['h2', 'spdy/3', 'http/1.1'])
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    secure_sock = context.wrap_socket(sock, server_hostname=url)
    secure_sock.connect((url, 443))
    return secure_sock.selected_alpn_protocol() == "h2"