You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: document.go
    path of file: ./repos/td/telegram/message/inline
    
    the code of the file until where you have to start completion: package inline

import "github.com/gotd/td/tg"

// DocumentResultBuilder is document result option builder.
type DocumentResultBuilder struct {
	result *tg.InputBotInlineResultDocument
	msg    MessageOption
}

    
func Document(doc tg.InputDocumentClass, typ string, msg MessageOption) *DocumentResultBuilder {
	return &DocumentResultBuilder{
		result: &tg.InputBotInlineResultDocument{
			Type:     typ,
			Document: doc,
		},
		msg: msg,
	}
}