utils

package
v0.0.0-...-0648364 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIDFromPeerClass

func GetIDFromPeerClass(peer tg.PeerClass) int64

GetIDFromPeerClass returns the chat/user id from the provided tg.PeerClass.

func NewDialer

func NewDialer(proxyConnStr string) (proxy.Dialer, error)

func NewResolver

func NewResolver(proxyConnStr string) (dcs.Resolver, error)

func RemoveSpacesAndNewlines

func RemoveSpacesAndNewlines(s string) string

Types

type MessageDeepLink struct {
	Username   string
	MessageID  int
	Parameters string
}
func ParseMessageDeepLink(link string) (MessageDeepLink, error)

Jump to

Keyboard shortcuts

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