Skip to content

Commit

Permalink
Add keyboard to carousel messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mileusna committed Jul 21, 2017
1 parent 021b7cf commit aaf9eb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion carousel.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type RichMediaMessage struct {
MinAPIVersion int `json:"min_api_version"`
RichMedia RichMedia `json:"rich_media"`
AltText string `json:"alt_text,omitempty"`
Keyboard *Keyboard `json:"keyboard,omitempty"`
}

// RichMedia for carousel
Expand Down Expand Up @@ -43,7 +44,7 @@ func (v *Viber) NewRichMediaMessage(cols, rows int, bgColor string) *RichMediaMe
// SetKeyboard for text message
func (rm *RichMediaMessage) SetKeyboard(k *Keyboard) {
// TODO
// rm.Keyboard = k
rm.Keyboard = k
}

// SetReceiver for RichMedia message
Expand Down

0 comments on commit aaf9eb7

Please sign in to comment.