Documentation ¶
Index ¶
- Constants
- type Button
- type ButtonType
- type CallbackButton
- func (button CallbackButton) GetColor() Color
- func (button CallbackButton) GetColumn() int
- func (button CallbackButton) GetLink() requests.URL
- func (button CallbackButton) GetPayload() Payload
- func (button CallbackButton) GetRow() int
- func (button CallbackButton) GetText() string
- func (button CallbackButton) GetType() ButtonType
- type Color
- type InlineKeyboard
- type Keyboard
- type LinkButton
- func (button LinkButton) GetColor() Color
- func (button LinkButton) GetColumn() int
- func (button LinkButton) GetLink() requests.URL
- func (button LinkButton) GetPayload() Payload
- func (button LinkButton) GetRow() int
- func (button LinkButton) GetText() string
- func (button LinkButton) GetType() ButtonType
- type NormalButton
- func (button NormalButton) GetColor() Color
- func (button NormalButton) GetColumn() int
- func (button NormalButton) GetLink() requests.URL
- func (button NormalButton) GetPayload() Payload
- func (button NormalButton) GetRow() int
- func (button NormalButton) GetText() string
- func (button NormalButton) GetType() ButtonType
- type OneTimeKeyboard
- type Payload
- type RemoveKeyboard
- type StaticKeyboard
Constants ¶
View Source
const ( NormalType = ButtonType("text") LinkType = ButtonType("open_link") CallbackType = ButtonType("callback") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ButtonType ¶
type ButtonType string
type CallbackButton ¶
func (CallbackButton) GetColor ¶ added in v1.1.0
func (button CallbackButton) GetColor() Color
func (CallbackButton) GetColumn ¶ added in v1.1.0
func (button CallbackButton) GetColumn() int
func (CallbackButton) GetLink ¶ added in v1.1.0
func (button CallbackButton) GetLink() requests.URL
func (CallbackButton) GetPayload ¶ added in v1.1.0
func (button CallbackButton) GetPayload() Payload
func (CallbackButton) GetRow ¶ added in v1.1.0
func (button CallbackButton) GetRow() int
func (CallbackButton) GetText ¶ added in v1.1.0
func (button CallbackButton) GetText() string
func (CallbackButton) GetType ¶ added in v1.1.0
func (button CallbackButton) GetType() ButtonType
type InlineKeyboard ¶
type InlineKeyboard struct {
// contains filtered or unexported fields
}
func (*InlineKeyboard) AddButton ¶
func (keyboard *InlineKeyboard) AddButton(button Button) *InlineKeyboard
func (*InlineKeyboard) GetJson ¶
func (keyboard *InlineKeyboard) GetJson() json.Json
func (*InlineKeyboard) Init ¶
func (keyboard *InlineKeyboard) Init()
type LinkButton ¶
func (LinkButton) GetColor ¶ added in v1.1.0
func (button LinkButton) GetColor() Color
func (LinkButton) GetColumn ¶ added in v1.1.0
func (button LinkButton) GetColumn() int
func (LinkButton) GetLink ¶ added in v1.1.0
func (button LinkButton) GetLink() requests.URL
func (LinkButton) GetPayload ¶ added in v1.1.0
func (button LinkButton) GetPayload() Payload
func (LinkButton) GetRow ¶ added in v1.1.0
func (button LinkButton) GetRow() int
func (LinkButton) GetText ¶ added in v1.1.0
func (button LinkButton) GetText() string
func (LinkButton) GetType ¶ added in v1.1.0
func (button LinkButton) GetType() ButtonType
type NormalButton ¶
func (NormalButton) GetColor ¶ added in v1.1.0
func (button NormalButton) GetColor() Color
func (NormalButton) GetColumn ¶ added in v1.1.0
func (button NormalButton) GetColumn() int
func (NormalButton) GetLink ¶ added in v1.1.0
func (button NormalButton) GetLink() requests.URL
func (NormalButton) GetPayload ¶ added in v1.1.0
func (button NormalButton) GetPayload() Payload
func (NormalButton) GetRow ¶ added in v1.1.0
func (button NormalButton) GetRow() int
func (NormalButton) GetText ¶ added in v1.1.0
func (button NormalButton) GetText() string
func (NormalButton) GetType ¶ added in v1.1.0
func (button NormalButton) GetType() ButtonType
type OneTimeKeyboard ¶
type OneTimeKeyboard struct {
// contains filtered or unexported fields
}
func (*OneTimeKeyboard) AddButton ¶
func (keyboard *OneTimeKeyboard) AddButton(button Button) *OneTimeKeyboard
func (*OneTimeKeyboard) GetJson ¶
func (keyboard *OneTimeKeyboard) GetJson() json.Json
func (*OneTimeKeyboard) Init ¶
func (keyboard *OneTimeKeyboard) Init()
type RemoveKeyboard ¶
type RemoveKeyboard struct {
// contains filtered or unexported fields
}
func (*RemoveKeyboard) GetJson ¶
func (keyboard *RemoveKeyboard) GetJson() json.Json
func (*RemoveKeyboard) Init ¶
func (keyboard *RemoveKeyboard) Init()
type StaticKeyboard ¶
type StaticKeyboard struct {
// contains filtered or unexported fields
}
func (*StaticKeyboard) AddButton ¶
func (keyboard *StaticKeyboard) AddButton(button Button) *StaticKeyboard
func (*StaticKeyboard) GetJson ¶
func (keyboard *StaticKeyboard) GetJson() json.Json
func (*StaticKeyboard) Init ¶
func (keyboard *StaticKeyboard) Init()
Click to show internal directories.
Click to hide internal directories.