tgForbidden

package
v0.0.0-...-f800b22 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FORBIDDEN  = "Forbidden"
	START_CHAT = "Forbidden: bot can't initiate conversation with a user"
)

these values are values which will be received from telegram as `Forbidden` errors.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForbiddenError

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

func GetForbidden

func GetForbidden(err error) (*ForbiddenError, bool)

func (*ForbiddenError) IsPrivateMessageError

func (_f *ForbiddenError) IsPrivateMessageError() bool

func (*ForbiddenError) SendRandomErrorMessage

func (_f *ForbiddenError) SendRandomErrorMessage(message *tg.Message)

Jump to

Keyboard shortcuts

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