func NewInlineQueryResultDocument(documentURL, title string, mimeType DocumentMimeType) (newDocument *InlineQueryResultDocument, generatedID *string) {
	if id, err := newUUID(); err == nil {
		return &InlineQueryResultDocument{
			InlineQueryResult: InlineQueryResult{
				Type: InlineQueryResultTypeDocument,
				ID:   id,
			},
			Title:       title,
			DocumentURL: documentURL,
			MimeType:    mimeType,
		}, &id
	}

	return &InlineQueryResultDocument{}, nil
}
// NewInlineQueryResultDocument is a helper function for generating a new InlineQueryResultDocument
//
// https://core.telegram.org/bots/api#inlinequeryresultdocument
NewInlineQueryResultDocument is a helper function for generating a new InlineQueryResultDocument

core.telegram.org/bots/api#inlinequeryresultdocument
// NewInlineQueryResultDocument is a helper function for generating a new InlineQueryResultDocument // // https : // core . telegram . org / bots / api#inlinequeryresultdocument
func NewInlineQueryResultDocument(documentURL, title string, mimeType DocumentMimeType) (newDocument *InlineQueryResultDocument, generatedID *string) {
	if id, err := newUUID(); err == nil {
		return &InlineQueryResultDocument{
			InlineQueryResult: InlineQueryResult{
				Type: InlineQueryResultTypeDocument,
				ID:   id,
			},
			Title:       title,
			DocumentURL: documentURL,
			MimeType:    mimeType,
		}, &id
	}
	return &InlineQueryResultDocument{}, nil
}
func NewInlineQueryResultDocument ( documentURL , title string , mimeType DocumentMimeType ) ( newDocument * InlineQueryResultDocument , generatedID * string ) { if id , err := newUUID ( ) ; err == nil { return & InlineQueryResultDocument { InlineQueryResult : InlineQueryResult { Type : InlineQueryResultTypeDocument , ID : id , } , Title : title , DocumentURL : documentURL , MimeType : mimeType , } , & id } return & InlineQueryResultDocument { } , nil }
NewInlineQueryResultDocument is a helper function for generating a new InlineQueryResultDocument
NewInlineQueryResultDocument is a helper function for generating a new InlineQueryResultDocument