From 6cfe3a936671f11bbfbbc51e1c27ec39f884f116 Mon Sep 17 00:00:00 2001 From: mileusna Date: Fri, 21 Jul 2017 16:46:08 +0200 Subject: [PATCH] NewKeybord() as receiver function instead of package function --- keyboard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboard.go b/keyboard.go index 0d466d4..d73d04a 100644 --- a/keyboard.go +++ b/keyboard.go @@ -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,