Skip to content

Commit

Permalink
NewKeybord() as receiver function instead of package function
Browse files Browse the repository at this point in the history
  • Loading branch information
mileusna committed Jul 21, 2017
1 parent aaf9eb7 commit 6cfe3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func (k *Keyboard) AddButton(b *Button) {
}

// NewKeyboard struct with attribs init
func NewKeyboard(bgcolor string, defaultHeight bool) *Keyboard {
func (v *Viber) NewKeyboard(bgcolor string, defaultHeight bool) *Keyboard {
return &Keyboard{
Type: "keyboard",
DefaultHeight: defaultHeight,
Expand Down

0 comments on commit 6cfe3a9

Please sign in to comment.