Documentation
¶
Index ¶
Constants ¶
View Source
const MaxPartSize = 512 * 1024
MaxPartSize refer to https://core.telegram.org/api/files#uploading-files
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Elem ¶
type Elem interface {
File() File
Thumb() (File, bool)
Caption() (string, []tg.MessageEntityClass)
To() tg.InputPeerClass
Thread() int
AsPhoto() bool
}
type Progress ¶
type Progress interface {
OnAdd(elem Elem)
OnUpload(elem Elem, state ProgressState)
OnDone(elem Elem, err error)
}
type ProgressState ¶
Click to show internal directories.
Click to hide internal directories.