shared

package
v0.0.0-...-d71c2e5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleBotError

func HandleBotError(ctx context.Context, e error, bot *tb.Bot, m *tb.Message)

HandleBotError is the handler for an error which a function has a bot and a message instance.

For other errors that don't have one of those struct instance, use HandleError instead.

func HandleError

func HandleError(ctx context.Context, e error)

HandleError handles common errors.

func HandleHttpError

func HandleHttpError(ctx context.Context, e error, r *http.Request)

HandleHttpError handles error that has a http.Request struct instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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