def METHOD_NAME(cls, rule: Optional[MagicFilter] = None) -> CallbackQueryFilter:
    """
    Generates a filter for callback query with rule
    :param rule: magic rule
    :return: instance of filter
    """
    return CallbackQueryFilter(callback_data=cls, rule=rule)