import json


async def sb_builder(text: str):
    """
    Snackbar builder

    :param text: Snackbar text
    :return: Ready to use Snackbar (already converted)
    """
    sb = {
        'type': 'show_snackbar',
        'text': text[:90]  # 90 is the max amount of symbols allowed in Snackbar
    }
    return str(json.dumps(sb, ensure_ascii=False))