Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Button ¶
type Button interface {
ButtonType() ButtonType
}
type DataButton ¶
func (DataButton) ButtonType ¶
func (DataButton) ButtonType() ButtonType
type Keyboard ¶
type Keyboard interface {
// KeyboardType defines MessageKeyboard type
KeyboardType() KeyboardType
}
Keyboard defines MessageKeyboard
type KeyboardType ¶
type KeyboardType int
KeyboardType defines MessageKeyboard type
const ( // KeyboardTypeNone for no MessageKeyboard // Used by: Telegram KeyboardTypeNone KeyboardType = iota // KeyboardTypeHide commands to hide MessageKeyboard // Used by: Telegram KeyboardTypeHide // KeyboardTypeInline for inline MessageKeyboard // Used by: Telegram KeyboardTypeInline // KeyboardTypeBottom for bottom MessageKeyboard // Used by: Telegram KeyboardTypeBottom // KeyboardTypeForceReply to force reply from a user // Used by: Telegram KeyboardTypeForceReply )
type MessageKeyboard ¶
type MessageKeyboard struct {
Buttons [][]Button
// contains filtered or unexported fields
}
func NewMessageKeyboard ¶
func NewMessageKeyboard(kbType KeyboardType, buttons ...[]Button) *MessageKeyboard
func (MessageKeyboard) KeyboardType ¶
func (k MessageKeyboard) KeyboardType() KeyboardType
type UrlButton ¶
func (UrlButton) ButtonType ¶
func (UrlButton) ButtonType() ButtonType
Click to show internal directories.
Click to hide internal directories.