File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -618,6 +618,15 @@ func NewKeyboardButton(text string) KeyboardButton {
618
618
}
619
619
}
620
620
621
+ // NewKeyboardButtonWebApp creates a keyboard button with text
622
+ // which goes to a WebApp.
623
+ func NewKeyboardButtonWebApp (text string , webapp WebAppInfo ) KeyboardButton {
624
+ return KeyboardButton {
625
+ Text : text ,
626
+ WebApp : & webapp ,
627
+ }
628
+ }
629
+
621
630
// NewKeyboardButtonContact creates a keyboard button that requests
622
631
// user contact information upon click.
623
632
func NewKeyboardButtonContact (text string ) KeyboardButton {
@@ -673,6 +682,15 @@ func NewInlineKeyboardButtonData(text, data string) InlineKeyboardButton {
673
682
}
674
683
}
675
684
685
+ // NewInlineKeyboardButtonWebApp creates an inline keyboard button with text
686
+ // which goes to a WebApp.
687
+ func NewInlineKeyboardButtonWebApp (text string , webapp WebAppInfo ) InlineKeyboardButton {
688
+ return InlineKeyboardButton {
689
+ Text : text ,
690
+ WebApp : & webapp ,
691
+ }
692
+ }
693
+
676
694
// NewInlineKeyboardButtonLoginURL creates an inline keyboard button with text
677
695
// which goes to a LoginURL.
678
696
func NewInlineKeyboardButtonLoginURL (text string , loginURL LoginURL ) InlineKeyboardButton {
You can’t perform that action at this time.
0 commit comments