fileutils

package
v0.0.0-...-2fdf555 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(msgFile *MsgFile, token string, botBaseUrl string, filePath string) (int64, error)

TODO: Make the downloaded image as Full size TODO: Make test with all file types

func PrettyString

func PrettyString(str string) (string, error)

Types

type MsgFile

type MsgFile struct {
	Type      string
	MessageID int
	Date      int
	From      int64
	Data      string
}

func GetMsgFile

func GetMsgFile(message *telego.Message) (MsgFile, error)

func (*MsgFile) GetData

func (m *MsgFile) GetData(b *telego.Bot) (string, error)

Jump to

Keyboard shortcuts

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