downloader

package
v0.0.0-...-0a55d2d Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Downloader

func Downloader(media string) (*os.File, error)

func GetMediaCache

func GetMediaCache(postID string) ([]telego.InputMedia, string, error)

func GetYoutubeCache

func GetYoutubeCache(youtubeID string, format string) (string, string, error)

func MergeAudioVideo

func MergeAudioVideo(videoFile, audioFile *os.File) *os.File

func RemoveMediaFiles

func RemoveMediaFiles(mediaItems []telego.InputMedia)

func SetMediaCache

func SetMediaCache(replied []telego.Message, result []string) error

func SetYoutubeCache

func SetYoutubeCache(replied *telego.Message, youtubeID string) error

func TruncateUTF8Caption

func TruncateUTF8Caption(s, url string) string

Types

type Medias

type Medias struct {
	Files   []string `json:"file_id"`
	Type    []string `json:"type"`
	Caption string   `json:"caption"`
}

type YouTube

type YouTube struct {
	Video   string `json:"video"`
	Audio   string `json:"audio"`
	Caption string `json:"caption"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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