Documentation
¶
Index ¶
- func Close()
- func Init()
- func NewCallbackData(t CallbackDataType, param ...string) *string
- func Webhook() func(c *gin.Context)
- type Auth
- type Callback
- type CallbackData
- type CallbackDataType
- type CallbackList
- type CallbackSearch
- type CallbackSetCommand
- type CallbackUpdateKey
- type Command
- type CommandClear
- type CommandDelete
- type CommandList
- type CommandMode
- type CommandPreview
- type CommandStart
- type CommandSubmit
- type EditedMessage
- type Inline
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCallbackData ¶
func NewCallbackData(t CallbackDataType, param ...string) *string
Types ¶
type CallbackData ¶
type CallbackData struct {
Type CallbackDataType `json:"t"` // 数据类型
Param []string `json:"p,omitempty"` // 参数
}
func ParseCallbackData ¶
func ParseCallbackData(s string) CallbackData
func (CallbackData) Is ¶
func (c CallbackData) Is(t CallbackDataType) bool
type CallbackDataType ¶
type CallbackDataType uint8
const ( CallbackNone CallbackDataType = iota CallbackTypeSearch CallbackTypeList CallbackTypeUpdateKey CallbackTypeSetCommand )
type CallbackList ¶
type CallbackList struct{}
func (CallbackList) Adapter ¶
func (CallbackList) Adapter() dandelion.Adapters
type CallbackSearch ¶
type CallbackSearch struct{}
func (CallbackSearch) Adapter ¶
func (CallbackSearch) Adapter() dandelion.Adapters
type CallbackSetCommand ¶
type CallbackSetCommand struct{}
func (CallbackSetCommand) Adapter ¶
func (CallbackSetCommand) Adapter() dandelion.Adapters
type CallbackUpdateKey ¶
type CallbackUpdateKey struct{}
func (CallbackUpdateKey) Adapter ¶
func (CallbackUpdateKey) Adapter() dandelion.Adapters
type CommandClear ¶
type CommandClear struct{}
func (CommandClear) Adapter ¶
func (CommandClear) Adapter() dandelion.Adapters
type CommandDelete ¶
type CommandDelete struct{}
func (CommandDelete) Adapter ¶
func (CommandDelete) Adapter() dandelion.Adapters
type CommandList ¶
type CommandList struct{}
func (CommandList) Adapter ¶
func (CommandList) Adapter() dandelion.Adapters
type CommandMode ¶
type CommandMode struct{}
func (CommandMode) Adapter ¶
func (CommandMode) Adapter() dandelion.Adapters
type CommandPreview ¶
type CommandPreview struct{}
func (CommandPreview) Adapter ¶
func (CommandPreview) Adapter() dandelion.Adapters
type CommandStart ¶
type CommandStart struct{}
func (CommandStart) Adapter ¶
func (CommandStart) Adapter() dandelion.Adapters
type CommandSubmit ¶
type CommandSubmit struct{}
func (CommandSubmit) Adapter ¶
func (CommandSubmit) Adapter() dandelion.Adapters
type EditedMessage ¶
type EditedMessage struct{}
func (EditedMessage) Adapter ¶
func (EditedMessage) Adapter() dandelion.Adapters
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func (*Message) SwitchMode ¶
Click to show internal directories.
Click to hide internal directories.