Documentation ¶
Index ¶
- Constants
- type DfsCore
- func (c *DfsCore) DfsDownloadFile(in *dfs.TLDfsDownloadFile) (*mtproto.Upload_File, error)
- func (c *DfsCore) DfsUploadDocumentFileV2(in *dfs.TLDfsUploadDocumentFileV2) (*mtproto.Document, error)
- func (c *DfsCore) DfsUploadEncryptedFileV2(in *dfs.TLDfsUploadEncryptedFileV2) (*mtproto.EncryptedFile, error)
- func (c *DfsCore) DfsUploadGifDocumentMedia(in *dfs.TLDfsUploadGifDocumentMedia) (*mtproto.Document, error)
- func (c *DfsCore) DfsUploadMp4DocumentMedia(in *dfs.TLDfsUploadMp4DocumentMedia) (*mtproto.Document, error)
- func (c *DfsCore) DfsUploadPhotoFileV2(in *dfs.TLDfsUploadPhotoFileV2) (*mtproto.Photo, error)
- func (c *DfsCore) DfsUploadProfilePhotoFileV2(in *dfs.TLDfsUploadProfilePhotoFileV2) (*mtproto.Photo, error)
- func (c *DfsCore) DfsUploadRingtoneFile(in *dfs.TLDfsUploadRingtoneFile) (*mtproto.Document, error)
- func (c *DfsCore) DfsUploadThemeFile(in *dfs.TLDfsUploadThemeFile) (*mtproto.Document, error)
- func (c *DfsCore) DfsUploadWallPaperFile(in *dfs.TLDfsUploadWallPaperFile) (*mtproto.Document, error)
- func (c *DfsCore) DfsWriteFilePartData(in *dfs.TLDfsWriteFilePartData) (*mtproto.Bool, error)
Constants ¶
const (
GifNeedConvertSize = 10240
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DfsCore ¶
type DfsCore struct { logx.Logger MD *metadata.RpcMetadata // contains filtered or unexported fields }
func (*DfsCore) DfsDownloadFile ¶
func (c *DfsCore) DfsDownloadFile(in *dfs.TLDfsDownloadFile) (*mtproto.Upload_File, error)
DfsDownloadFile dfs.downloadFile location:InputFileLocation offset:int limit:int = upload.File;
func (*DfsCore) DfsUploadDocumentFileV2 ¶
func (c *DfsCore) DfsUploadDocumentFileV2(in *dfs.TLDfsUploadDocumentFileV2) (*mtproto.Document, error)
DfsUploadDocumentFileV2 dfs.uploadDocumentFileV2 creator:long media:InputMedia = Document;
func (*DfsCore) DfsUploadEncryptedFileV2 ¶
func (c *DfsCore) DfsUploadEncryptedFileV2(in *dfs.TLDfsUploadEncryptedFileV2) (*mtproto.EncryptedFile, error)
DfsUploadEncryptedFileV2 dfs.uploadEncryptedFileV2 creator:long file:InputEncryptedFile = EncryptedFile;
func (*DfsCore) DfsUploadGifDocumentMedia ¶
func (c *DfsCore) DfsUploadGifDocumentMedia(in *dfs.TLDfsUploadGifDocumentMedia) (*mtproto.Document, error)
DfsUploadGifDocumentMedia dfs.uploadGifDocumentMedia creator:long media:InputMedia = Document;
func (*DfsCore) DfsUploadMp4DocumentMedia ¶
func (c *DfsCore) DfsUploadMp4DocumentMedia(in *dfs.TLDfsUploadMp4DocumentMedia) (*mtproto.Document, error)
DfsUploadMp4DocumentMedia dfs.uploadMp4DocumentMedia creator:long media:InputMedia = Document;
func (*DfsCore) DfsUploadPhotoFileV2 ¶
DfsUploadPhotoFileV2 dfs.uploadPhotoFileV2 creator:long file:InputFile = Photo;
func (*DfsCore) DfsUploadProfilePhotoFileV2 ¶
func (c *DfsCore) DfsUploadProfilePhotoFileV2(in *dfs.TLDfsUploadProfilePhotoFileV2) (*mtproto.Photo, error)
DfsUploadProfilePhotoFileV2 dfs.uploadProfilePhotoFileV2 flags:# creator:long file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double = Photo;
func (*DfsCore) DfsUploadRingtoneFile ¶ added in v0.87.4
DfsUploadRingtoneFile dfs.uploadRingtoneFile creator:long file:InputFile mime_type:string file_name:string = Document;
func (*DfsCore) DfsUploadThemeFile ¶
DfsUploadThemeFile dfs.uploadThemeFile flags:# creator:long file:InputFile thumb:flags.0?InputFile mime_type:string file_name:string = Document;
func (*DfsCore) DfsUploadWallPaperFile ¶
func (c *DfsCore) DfsUploadWallPaperFile(in *dfs.TLDfsUploadWallPaperFile) (*mtproto.Document, error)
DfsUploadWallPaperFile dfs.uploadWallPaperFile creator:long file:InputFile mime_type:string admin:Bool = Document;
func (*DfsCore) DfsWriteFilePartData ¶
DfsWriteFilePartData dfs.writeFilePartData flags:# creator:long file_id:long bytes:bytes big:flags.0?true file_total_parts:flags.1?int = Bool;
Source Files ¶
- core.go
- dfs.downloadFile_handler.go
- dfs.uploadDocumentFileV2_handler.go
- dfs.uploadEncryptedFileV2_handler.go
- dfs.uploadGifDocumentMedia_handler.go
- dfs.uploadMp4DocumentMedia_handler.go
- dfs.uploadPhotoFileV2_handler.go
- dfs.uploadProfilePhotoFileV2_handler.go
- dfs.uploadRingtoneFile_handler.go
- dfs.uploadThemeFile_handler.go
- dfs.uploadWallPaperFile_handler.go
- dfs.writeFilePartData_handler.go