errors

package
v1.0.0-beta24 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientAlreadyRunning  = errors.New("client is already running")
	ErrSessionUnauthorized   = errors.New("session is unauthorized")
	ErrConversationCancelled = errors.New("conversation cancelled")
	ErrConversationTimeout   = errors.New("conversation: timeout waiting for response")
	ErrConversationClosed    = errors.New("conversation: closed")
)
View Source
var (
	ErrPeerNotFound       = errors.New("peer not found")
	ErrNotChat            = errors.New("not chat")
	ErrNotChannel         = errors.New("not channel")
	ErrNotUser            = errors.New("not user")
	ErrTextEmpty          = errors.New("text was not provided")
	ErrTextInvalid        = errors.New("type of text is invalid, provide one from string and []styling.StyledTextOption")
	ErrMessageNotExist    = errors.New("message not exist")
	ErrReplyNotMessage    = errors.New("reply header is not a message")
	ErrUnknownTypeMedia   = errors.New("unknown type media")
	ErrUserNotParticipant = errors.New("user not participant")
)
View Source
var (
	ErrPeerInfoNotFound        = errors.New("peer info not found in the resolved chats")
	ErrChannelForbidden        = errors.New("peer could not be resolved because channel forbidden")
	ErrContactNotFound         = errors.New("contact not found")
	ErrInvalidBotUsername      = errors.New("provided username was invalid for a bot")
	ErrSendCodeEmptyData       = errors.New("send code returned empty data")
	ErrNotImplemented          = errors.New("not implemented")
	ErrNilSessionStorage       = errors.New("nil session storage is invalid")
	ErrNoAuthenticator         = errors.New("no UserAuthenticator provided")
	ErrInvalidGramjsSession    = errors.New("invalid session string: too short or wrong version")
	ErrInvalidMtcuteSession    = errors.New("invalid mtcute session string: too short or wrong version")
	ErrExtractParticipantUser  = errors.New("could not extract user ID from participant")
	ErrUserNotFoundInPeerStore = errors.New("user not found in peer storage")
)
View Source
var (
	ErrStopClient       = errors.New("disconnect")
	ErrEndGroups        = errors.New("stopped")
	ErrContinueGroups   = errors.New("continued")
	ErrSkipCurrentGroup = errors.New("skipped")
)

Dispatcher control flow errors.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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