func (b *Bot) AnswerPreCheckoutQuery(preCheckoutQueryID string, ok bool, errorMessage *string) (result APIResponseBool) {
	// essential params
	params := map[string]interface{}{
		"pre_checkout_query_id": preCheckoutQueryID,
		"ok":                    ok,
	}
	// optional params
	if !ok {
		if errorMessage != nil {
			params["error_message"] = *errorMessage
		}
	}

	return b.requestResponseBool("answerPreCheckoutQuery", params)
}
// AnswerPreCheckoutQuery answers a pre-checkout query.
//
// https://core.telegram.org/bots/api#answerprecheckoutquery
AnswerPreCheckoutQuery answers a pre-checkout query.

core.telegram.org/bots/api#answerprecheckoutquery
// AnswerPreCheckoutQuery answers a pre - checkout query . // // https : // core . telegram . org / bots / api#answerprecheckoutquery
func (b *Bot) AnswerPreCheckoutQuery(preCheckoutQueryID string, ok bool, errorMessage *string) (result APIResponseBool) {
	params := map[string]interface{}{
		"pre_checkout_query_id": preCheckoutQueryID,
		"ok":                    ok,
	}
	if !ok {
		if errorMessage != nil {
			params["error_message"] = *errorMessage
		}
	}
	return b.requestResponseBool("answerPreCheckoutQuery", params)
}
func ( b * Bot ) AnswerPreCheckoutQuery ( preCheckoutQueryID string , ok bool , errorMessage * string ) ( result APIResponseBool ) { params := map [ string ] interface { } { " " : preCheckoutQueryID , " " : ok , } if ! ok { if errorMessage != nil { params [ " " ] = * errorMessage } } return b . requestResponseBool ( " " , params ) }
AnswerPreCheckoutQuery answers a pre-checkout query.
AnswerPreCheckoutQuery answers a pre - checkout query .
// essential params // optional params