from typing import Optional
from typing import List
from typing import Dict
import json


def create_keyboard(  # noqa: WPS234
    inline_keyboard: Optional[List[List[Dict]]] = None,
) -> str:
    """Create inline Telegram keyboard.

    Args:
        inline_keyboard: keyboard with buttons

    Returns:
        inline_keyboard in json format
    """
    return json.dumps({'inline_keyboard': inline_keyboard})