def format_channel_link(name: str, channel_id: str):
    """
    Formats a channel name and ID as a channel link using slack control sequences
    https://api.slack.com/docs/message-formatting#linking_to_channels_and_users

    >>> format_channel_link('general', 'C024BE7LR')
    '<#C024BE7LR|general>'
    """
    return '<#{}|{}>'.format(channel_id, name)