func (b *Bot) AnswerShippingQuery(shippingQueryID string, ok bool, shippingOptions []ShippingOption, errorMessage *string) (result APIResponseBool) {
	// essential params
	params := map[string]interface{}{
		"shipping_query_id": shippingQueryID,
		"ok":                ok,
	}
	// optional params
	if ok {
		if len(shippingOptions) > 0 {
			params["shipping_options"] = shippingOptions
		}
	} else {
		if errorMessage != nil {
			params["error_message"] = *errorMessage
		}
	}

	return b.requestResponseBool("answerShippingQuery", params)
}
// AnswerShippingQuery answers a shipping query.
//
// if ok is true, shippingOptions should be provided.
// otherwise, errorMessage should be provided.
//
// https://core.telegram.org/bots/api#answershippingquery
AnswerShippingQuery answers a shipping query.

if ok is true, shippingOptions should be provided.
otherwise, errorMessage should be provided.

core.telegram.org/bots/api#answershippingquery
// AnswerShippingQuery answers a shipping query . // // if ok is true shippingOptions should be provided . // otherwise errorMessage should be provided . // // https : // core . telegram . org / bots / api#answershippingquery
func (b *Bot) AnswerShippingQuery(shippingQueryID string, ok bool, shippingOptions []ShippingOption, errorMessage *string) (result APIResponseBool) {
	params := map[string]interface{}{
		"shipping_query_id": shippingQueryID,
		"ok":                ok,
	}
	if ok {
		if len(shippingOptions) > 0 {
			params["shipping_options"] = shippingOptions
		}
	} else {
		if errorMessage != nil {
			params["error_message"] = *errorMessage
		}
	}
	return b.requestResponseBool("answerShippingQuery", params)
}
func ( b * Bot ) AnswerShippingQuery ( shippingQueryID string , ok bool , shippingOptions [ ] ShippingOption , errorMessage * string ) ( result APIResponseBool ) { params := map [ string ] interface { } { " " : shippingQueryID , " " : ok , } if ok { if len ( shippingOptions ) > 0 { params [ " " ] = shippingOptions } } else { if errorMessage != nil { params [ " " ] = * errorMessage } } return b . requestResponseBool ( " " , params ) }
AnswerShippingQuery answers a shipping query.
AnswerShippingQuery answers a shipping query .
// essential params // optional params