Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrWrongOperation = errors.New("wrong operation")
)
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.