Documentation ¶
Index ¶
- type Service
- func (s *Service) DfsDownloadFile(ctx context.Context, request *dfs.TLDfsDownloadFile) (*mtproto.Upload_File, error)
- func (s *Service) DfsUploadDocumentFileV2(ctx context.Context, request *dfs.TLDfsUploadDocumentFileV2) (*mtproto.Document, error)
- func (s *Service) DfsUploadEncryptedFileV2(ctx context.Context, request *dfs.TLDfsUploadEncryptedFileV2) (*mtproto.EncryptedFile, error)
- func (s *Service) DfsUploadGifDocumentMedia(ctx context.Context, request *dfs.TLDfsUploadGifDocumentMedia) (*mtproto.Document, error)
- func (s *Service) DfsUploadMp4DocumentMedia(ctx context.Context, request *dfs.TLDfsUploadMp4DocumentMedia) (*mtproto.Document, error)
- func (s *Service) DfsUploadPhotoFileV2(ctx context.Context, request *dfs.TLDfsUploadPhotoFileV2) (*mtproto.Photo, error)
- func (s *Service) DfsUploadProfilePhotoFileV2(ctx context.Context, request *dfs.TLDfsUploadProfilePhotoFileV2) (*mtproto.Photo, error)
- func (s *Service) DfsUploadThemeFile(ctx context.Context, request *dfs.TLDfsUploadThemeFile) (*mtproto.Document, error)
- func (s *Service) DfsUploadWallPaperFile(ctx context.Context, request *dfs.TLDfsUploadWallPaperFile) (*mtproto.Document, error)
- func (s *Service) DfsWriteFilePartData(ctx context.Context, request *dfs.TLDfsWriteFilePartData) (*mtproto.Bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx *svc.ServiceContext) *Service
func (*Service) DfsDownloadFile ¶
func (s *Service) DfsDownloadFile(ctx context.Context, request *dfs.TLDfsDownloadFile) (*mtproto.Upload_File, error)
DfsDownloadFile dfs.downloadFile location:InputFileLocation offset:int limit:int = upload.File;
func (*Service) DfsUploadDocumentFileV2 ¶
func (s *Service) DfsUploadDocumentFileV2(ctx context.Context, request *dfs.TLDfsUploadDocumentFileV2) (*mtproto.Document, error)
DfsUploadDocumentFileV2 dfs.uploadDocumentFileV2 creator:long media:InputMedia = Document;
func (*Service) DfsUploadEncryptedFileV2 ¶
func (s *Service) DfsUploadEncryptedFileV2(ctx context.Context, request *dfs.TLDfsUploadEncryptedFileV2) (*mtproto.EncryptedFile, error)
DfsUploadEncryptedFileV2 dfs.uploadEncryptedFileV2 creator:long file:InputEncryptedFile = EncryptedFile;
func (*Service) DfsUploadGifDocumentMedia ¶
func (s *Service) DfsUploadGifDocumentMedia(ctx context.Context, request *dfs.TLDfsUploadGifDocumentMedia) (*mtproto.Document, error)
DfsUploadGifDocumentMedia dfs.uploadGifDocumentMedia creator:long media:InputMedia = Document;
func (*Service) DfsUploadMp4DocumentMedia ¶
func (s *Service) DfsUploadMp4DocumentMedia(ctx context.Context, request *dfs.TLDfsUploadMp4DocumentMedia) (*mtproto.Document, error)
DfsUploadMp4DocumentMedia dfs.uploadMp4DocumentMedia creator:long media:InputMedia = Document;
func (*Service) DfsUploadPhotoFileV2 ¶
func (s *Service) DfsUploadPhotoFileV2(ctx context.Context, request *dfs.TLDfsUploadPhotoFileV2) (*mtproto.Photo, error)
DfsUploadPhotoFileV2 dfs.uploadPhotoFileV2 creator:long file:InputFile = Photo;
func (*Service) DfsUploadProfilePhotoFileV2 ¶
func (s *Service) DfsUploadProfilePhotoFileV2(ctx context.Context, request *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 (*Service) DfsUploadThemeFile ¶
func (s *Service) DfsUploadThemeFile(ctx context.Context, request *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 (*Service) DfsUploadWallPaperFile ¶
func (s *Service) DfsUploadWallPaperFile(ctx context.Context, request *dfs.TLDfsUploadWallPaperFile) (*mtproto.Document, error)
DfsUploadWallPaperFile dfs.uploadWallPaperFile creator:long file:InputFile mime_type:string admin:Bool = Document;
func (*Service) DfsWriteFilePartData ¶
func (s *Service) DfsWriteFilePartData(ctx context.Context, request *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;