Documentation ¶
Index ¶
- type Button
- type ButtonGroup
- type CmdArgs
- type Context
- func (c *Context) Cancel()
- func (c *Context) CmdArgs() *CmdArgs
- func (c *Context) Get(out interface{}) error
- func (c *Context) Promp(description string, button Button, otherButtons ...Button) error
- func (c *Context) Send(s string) error
- func (c *Context) SetKeyboard(buttonGroup []ButtonGroup, otherButtonGroups ...[]ButtonGroup) error
- func (c *Context) ShowNotification(s string) error
- func (c *Context) Switch(pipeline *Pipeline)
- type Gram
- type Option
- type Pipeline
- type StateDecoder
- type StateEncoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ButtonGroup ¶
type ButtonGroup []Button
type Context ¶
func GetContext ¶
func (*Context) SetKeyboard ¶
func (c *Context) SetKeyboard(buttonGroup []ButtonGroup, otherButtonGroups ...[]ButtonGroup) error
func (*Context) ShowNotification ¶
type Gram ¶
type Gram struct {
// contains filtered or unexported fields
}
func (*Gram) StartPooling ¶
func (*Gram) StopPooling ¶
func (*Gram) UpdateCommands ¶
func (*Gram) WebhookHandler ¶
type Option ¶
type Option func(*Gram)
func EnableDistributedModeOption ¶
func EnableDistributedModeOption() Option
func GracefulSendOption ¶
func GracefulSendOption() Option
func RedisOption ¶
type StateDecoder ¶
type StateEncoder ¶
Click to show internal directories.
Click to hide internal directories.