Documentation ¶
Index ¶
Constants ¶
const TypeAudio string = "audio"
TypeAudio is the type of our audio hint
const TypeDigits string = "digits"
TypeDigits is the type of our digits hint
const TypeImage string = "image"
TypeImage is the type of our image hint
const TypeLocation string = "location"
TypeLocation is the type of our location hint
const TypeVideo string = "video"
TypeVideo is the type of our video hint
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AudioHint ¶
type AudioHint struct {
// contains filtered or unexported fields
}
AudioHint requests a message with an audio attachment
type DigitsHint ¶
type DigitsHint struct { Count *int `json:"count,omitempty"` TerminatedBy string `json:"terminated_by,omitempty"` // contains filtered or unexported fields }
DigitsHint requests a message containing one or more digits
func NewFixedDigitsHint ¶
func NewFixedDigitsHint(count int) *DigitsHint
NewFixedDigitsHint creates a new digits hint for a fixed count of digits
func NewTerminatedDigitsHint ¶
func NewTerminatedDigitsHint(terminatedBy string) *DigitsHint
NewTerminatedDigitsHint creates a new digits hint for a sequence of digits terminated by the given key
type ImageHint ¶
type ImageHint struct {
// contains filtered or unexported fields
}
ImageHint requests a message with an image attachment
type LocationHint ¶
type LocationHint struct {
// contains filtered or unexported fields
}
LocationHint requests a message with a location attachment, i.e. a geo:<lat>,<long>
func NewLocationHint ¶
func NewLocationHint() *LocationHint
NewLocationHint creates a new location hint