filetypes

package
v0.0.0-...-9e7b976 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: MIT Imports: 3 Imported by: 8

Documentation

Index

Constants

View Source
const (
	Undefiend       int32 = 0
	RecSuccess      int32 = 1
	RecFailed       int32 = 2
	DownloadSuccess int32 = 4
	DownloadFailed  int32 = 8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CompleteFile

type CompleteFile FileLink

type DownloadedFile

type DownloadedFile struct {
	Link  *FileLink
	Error error
}

type FileBasic

type FileBasic struct {
	FileId       string
	Type         string
	Sent         time.Time
	From         int64
	Tags         []string
	Errorc       chan error
	BasicContext context.Context
}

func NewFileBasic

func NewFileBasic(message *TGBotAPI.Message, kind string, fileid string) *FileBasic

type FileInfo

type FileInfo FileLink
type FileLink struct {
	FileDownloadURL string
	LocalPath       string
	Basics          *FileBasic
	Status          *int32
}

type PreparedFile

type PreparedFile struct {
	Link  *FileLink
	Error error
}

Jump to

Keyboard shortcuts

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