tgmedia

package
v0.0.0-...-c47d08d Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromDisk

func FromDisk(filename string, opts ...interface{}) tg.Inputtable

FromDisk tries to guess telegram file type based of filename. The function has okay defaults, but I encourage you to handle everything yourself if you want to be sure.

func FromDiskVerbose

func FromDiskVerbose(filename string, modsImage []tg.ImageModifier, modsVideo []tg.VideoModifier,
	nativeImage, convertImage,
	nativeVideo, convertVideo, convertByCopyVideo []string) tg.Inputtable

FromDiskVerbose uploads media from file.

modsImage, modsVideo -- are common for native and non-native media, nativeImage, nativeVideo -- filetypes that do not require conversion before uploading, convertImage, convertVideo -- filetypes that require conversion before uploading, nativeImage, nativeVideo -- filetypes that do not require conversion before uploading.

Note: filetypes has to be lowercase, the FromDiskVerbose is case-insensitive by design.

Types

This section is empty.

Jump to

Keyboard shortcuts

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