Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(kb *ReplyKeyboard)
func InputFieldPlaceholder ¶
IsPersistent is a keyboard placeholder to be shown in the input field when the keyboard is active
func IsOneTimeKeyboard ¶
func IsOneTimeKeyboard() Option
IsOneTimeKeyboard is a keyboard option that if setted will force the client to hide the keyboard after being used
func IsPersistent ¶
func IsPersistent() Option
IsPersistent is a keyboard option that requests clients to always show the keyboard when the regular keyboard is hidden.
func IsSelective ¶
func IsSelective() Option
IsSelective is a keyboard option that will show the keyboard only to specific users.
func ResizableKeyboard ¶
func ResizableKeyboard() Option
ResizableKeyboard is a keyboard option that requests clients to resize the keyboard vertically for optimal fit.
func WithPrefix ¶
WithPrefix is a keyboard option that sets a prefix for the widget
type ReplyKeyboard ¶
type ReplyKeyboard struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...Option) *ReplyKeyboard
func (*ReplyKeyboard) Button ¶
func (kb *ReplyKeyboard) Button(text string, b *bot.Bot, matchType bot.MatchType, handler bot.HandlerFunc) *ReplyKeyboard
func (*ReplyKeyboard) MarshalJSON ¶
func (kb *ReplyKeyboard) MarshalJSON() ([]byte, error)
func (*ReplyKeyboard) Prefix ¶
func (kb *ReplyKeyboard) Prefix() string
Prefix returns the prefix of the widget
func (*ReplyKeyboard) Row ¶
func (kb *ReplyKeyboard) Row() *ReplyKeyboard