core

package
v0.96.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
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 New

func New(ctx context.Context, svcCtx *svc.ServiceContext) *DfsCore

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

func (c *DfsCore) DfsUploadPhotoFileV2(in *dfs.TLDfsUploadPhotoFileV2) (*mtproto.Photo, error)

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

func (c *DfsCore) DfsUploadRingtoneFile(in *dfs.TLDfsUploadRingtoneFile) (*mtproto.Document, error)

DfsUploadRingtoneFile dfs.uploadRingtoneFile creator:long file:InputFile mime_type:string file_name:string = Document;

func (*DfsCore) DfsUploadThemeFile

func (c *DfsCore) DfsUploadThemeFile(in *dfs.TLDfsUploadThemeFile) (*mtproto.Document, error)

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

func (c *DfsCore) DfsWriteFilePartData(in *dfs.TLDfsWriteFilePartData) (*mtproto.Bool, error)

DfsWriteFilePartData dfs.writeFilePartData flags:# creator:long file_id:long bytes:bytes big:flags.0?true file_total_parts:flags.1?int = Bool;

Jump to

Keyboard shortcuts

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