commands

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const TypeAckChat string = "ack_chat"
View Source
const TypeGetHistory string = "get_history"
View Source
const TypeSendMsg string = "send_msg"
View Source
const TypeSetEmail string = "set_email"
View Source
const TypeStartChat string = "start_chat"

Variables

This section is empty.

Functions

This section is empty.

Types

type AckChat

type AckChat struct {
	MsgID models.MsgID `json:"msg_id" validate:"required"`
	// contains filtered or unexported fields
}

func (*AckChat) Type

func (e *AckChat) Type() string

type Command

type Command interface {
	Type() string
}

func ReadCommand

func ReadCommand(d []byte) (Command, error)

type GetHistory

type GetHistory struct {
	Before time.Time `json:"before" validate:"required"`
	// contains filtered or unexported fields
}

func (*GetHistory) Type

func (e *GetHistory) Type() string

type SendMsg

type SendMsg struct {
	Text string `json:"text" validate:"required"`
	// contains filtered or unexported fields
}

func (*SendMsg) Type

func (e *SendMsg) Type() string

type SetEmail

type SetEmail struct {
	Email string `json:"email" validate:"required"`
	// contains filtered or unexported fields
}

func (*SetEmail) Type

func (e *SetEmail) Type() string

type StartChat

type StartChat struct {
	ChatID models.ChatID `json:"chat_id"`
	// contains filtered or unexported fields
}

func (*StartChat) Type

func (e *StartChat) Type() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL