Documentation ¶
Index ¶
- func CloseSafely(toClose io.Closer)
- func DownloadFile(filepath string, url string) (err error)
- func FindURLs(text string) (links []string)
- func GetHandleOrUserName(user *tgbotapi.User) (name string)
- func GetVideo(url string) (path string, err error)
- func GetVideoID(url string) (ID string)
- func RandomNumber(len int64) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseSafely ¶
CloseSafely closes an entity and logs in case of errors
func DownloadFile ¶
DownloadFile downloads a file using a GET http request
func GetHandleOrUserName ¶
GetHandleOrUserName returns the user handle or their first and last name
func GetVideoID ¶
GetVideoID returns the ID of the video to download
func RandomNumber ¶
RandomNumber returns a number between 0 and len
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.