utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client = NewClient()

Functions

func Config

func Config(name string) string

func CreateBot

func CreateBot() *tgbotapi.BotAPI

func ExtractUrls added in v0.0.3

func ExtractUrls(s string) []*url.URL

func LinkedName

func LinkedName(user *tgbotapi.User) string

func NeedToIgnore added in v0.0.2

func NeedToIgnore(bot *tgbotapi.BotAPI, text string) bool

func NewClient added in v0.0.2

func NewClient() *http.Client

func SeekLocation added in v0.0.2

func SeekLocation(u *url.URL) *url.URL

func Serverless

func Serverless() bool

func Value added in v0.0.3

func Value[T any](first T, rest ...any) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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