Versions in this module Expand all Collapse all v0 v0.1.0 Mar 13, 2022 Changes in this version + var ErrInputConflictOnSave = errors.New(...) + type ChatDoesNotBelowToUserError struct + ChatID int64 + UserID int64 + func (e ChatDoesNotBelowToUserError) Error() string + type ChatNotFoundError struct + ChatID int64 + func (e ChatNotFoundError) Error() string + type Input struct + func (i Input) Description() string + func (i Input) ID() int64 + func (i Input) InputType() InputType + func (i Input) Name() string + func (i Input) OwnerID() int64 + func (i Input) Version() int64 + type InputFactory struct + func NewInputFactory(telegramClient TelegramService) InputFactory + func (f InputFactory) Build(ctx context.Context, id int64, ownerID int64, inputType InputType, name string, ...) (Input, error) + type InputRepository interface + Save func(ctx context.Context, input Input) error + type InputType struct + var TelegramChannel InputType = InputType{} + var TelegramGroup InputType = InputType{} + var TelegramPrivate InputType = InputType{} + var TelegramSuperGroup InputType = InputType{} + func NewInputTypeFromStr(value string) InputType + func (i InputType) Value() string + type TelegramService interface + IsChatValid func(ctx context.Context, chatId, userId int64) (bool, error)