Skip to content

Commit e496cd8

Browse files
committed
feat(buttons): add Copy method to create KeyboardButtonCopy
1 parent 64b60d2 commit e496cd8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

telegram/buttons.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ func (ButtonBuilder) Mention(text string, userID int64) *KeyboardButtonUserProfi
135135
return &KeyboardButtonUserProfile{Text: text, UserID: userID}
136136
}
137137

138+
func (ButtonBuilder) Copy(text string, copyText string) *KeyboardButtonCopy {
139+
return &KeyboardButtonCopy{Text: text, CopyText: copyText}
140+
}
141+
138142
func (ButtonBuilder) Row(Buttons ...KeyboardButton) *KeyboardButtonRow {
139143
return &KeyboardButtonRow{Buttons: Buttons}
140144
}

0 commit comments

Comments
 (0)