bot

package
v0.0.0-...-a8c0ee1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongOperation = errors.New("wrong operation")
)

Functions

func Start

func Start(token string, userList []*users.User) error

Types

type ChatEntity

type ChatEntity struct {
	// contains filtered or unexported fields
}

func (*ChatEntity) ProcessMessage

func (e *ChatEntity) ProcessMessage(command *tgbotapi.Message) (*tgbotapi.MessageConfig, error)

func (*ChatEntity) Register

func (e *ChatEntity) Register(phoneNumber string) (*tgbotapi.MessageConfig, error)

func (*ChatEntity) SendWakeOnLan

func (e *ChatEntity) SendWakeOnLan() (*tgbotapi.MessageConfig, error)

type ChatStorage

type ChatStorage struct {
	// contains filtered or unexported fields
}

func NewChatStorage

func NewChatStorage(userStorage *users.UserStorage) *ChatStorage

func (*ChatStorage) GetChat

func (s *ChatStorage) GetChat(chatId int64) *ChatEntity

Jump to

Keyboard shortcuts

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