import json


def create_button(text: str = ' ', **kwargs) -> dict:
    """Create button for inline Telegram keyboard.

    Args:
        text: message text
        kwargs: optional params

    Returns:
        inline keyboard button
    """
    callback_data = json.dumps(kwargs)
    return {'text': text, 'callback_data': callback_data}