def get_import_code(tlobject):
    """``TLObject -> from ... import ...``."""
    kind = 'functions' if tlobject.is_function else 'types'
    ns = f'.{tlobject.namespace}' if tlobject.namespace else ''
    return f'from telethon.tl.{kind}{ns} import {tlobject.class_name}'