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.