utils

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v1.1.7

func Contains[E comparable](s []E, v E) bool

func ContainsFiles added in v1.1.8

func ContainsFiles(message types.Message) bool

func GetForm

func GetForm(method rawTypes.Method) (map[string]string, error)

func IsServerError added in v1.4.2

func IsServerError(rawResult []byte, err error, method rawTypes.Method) bool

func ParseResult

func ParseResult(rawResult []byte, err error, method rawTypes.Method) (*rawTypes.Result, error)

func SplitButtons added in v1.4.0

func SplitButtons(splitBy int, buttons ...types.InlineKeyboardButton) [][]types.InlineKeyboardButton

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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