service

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: 4 Imported by: 0

Documentation

Index

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) GetServiceContext added in v0.96.0

func (s *Service) GetServiceContext() *svc.ServiceContext

func (*Service) HelpGetCdnConfig

func (s *Service) HelpGetCdnConfig(ctx context.Context, request *mtproto.TLHelpGetCdnConfig) (*mtproto.CdnConfig, error)

HelpGetCdnConfig help.getCdnConfig#52029342 = CdnConfig;

func (*Service) MessagesGetDocumentByHash

func (s *Service) MessagesGetDocumentByHash(ctx context.Context, request *mtproto.TLMessagesGetDocumentByHash) (*mtproto.Document, error)

MessagesGetDocumentByHash messages.getDocumentByHash#b1f2061f sha256:bytes size:long mime_type:string = Document;

func (*Service) MessagesGetExtendedMedia added in v0.96.0

func (s *Service) MessagesGetExtendedMedia(ctx context.Context, request *mtproto.TLMessagesGetExtendedMedia) (*mtproto.Updates, error)

MessagesGetExtendedMedia messages.getExtendedMedia#84f80814 peer:InputPeer id:Vector<int> = Updates;

func (*Service) MessagesUploadEncryptedFile

func (s *Service) MessagesUploadEncryptedFile(ctx context.Context, request *mtproto.TLMessagesUploadEncryptedFile) (*mtproto.EncryptedFile, error)

MessagesUploadEncryptedFile messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile;

func (*Service) MessagesUploadMedia

func (s *Service) MessagesUploadMedia(ctx context.Context, request *mtproto.TLMessagesUploadMedia) (*mtproto.MessageMedia, error)

MessagesUploadMedia messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia;

func (*Service) UploadGetCdnFile

func (s *Service) UploadGetCdnFile(ctx context.Context, request *mtproto.TLUploadGetCdnFile) (*mtproto.Upload_CdnFile, error)

UploadGetCdnFile upload.getCdnFile#395f69da file_token:bytes offset:long limit:int = upload.CdnFile;

func (*Service) UploadGetCdnFileHashes

func (s *Service) UploadGetCdnFileHashes(ctx context.Context, request *mtproto.TLUploadGetCdnFileHashes) (*mtproto.Vector_FileHash, error)

UploadGetCdnFileHashes upload.getCdnFileHashes#91dc3f31 file_token:bytes offset:long = Vector<FileHash>;

func (*Service) UploadGetFile

func (s *Service) UploadGetFile(ctx context.Context, request *mtproto.TLUploadGetFile) (*mtproto.Upload_File, error)

UploadGetFile upload.getFile#be5335be flags:# precise:flags.0?true cdn_supported:flags.1?true location:InputFileLocation offset:long limit:int = upload.File;

func (*Service) UploadGetFileHashes

func (s *Service) UploadGetFileHashes(ctx context.Context, request *mtproto.TLUploadGetFileHashes) (*mtproto.Vector_FileHash, error)

UploadGetFileHashes upload.getFileHashes#9156982a location:InputFileLocation offset:long = Vector<FileHash>;

func (*Service) UploadGetWebFile

func (s *Service) UploadGetWebFile(ctx context.Context, request *mtproto.TLUploadGetWebFile) (*mtproto.Upload_WebFile, error)

UploadGetWebFile upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile;

func (*Service) UploadReuploadCdnFile

func (s *Service) UploadReuploadCdnFile(ctx context.Context, request *mtproto.TLUploadReuploadCdnFile) (*mtproto.Vector_FileHash, error)

UploadReuploadCdnFile upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector<FileHash>;

func (*Service) UploadSaveBigFilePart

func (s *Service) UploadSaveBigFilePart(ctx context.Context, request *mtproto.TLUploadSaveBigFilePart) (*mtproto.Bool, error)

UploadSaveBigFilePart upload.saveBigFilePart#de7b673d file_id:long file_part:int file_total_parts:int bytes:bytes = Bool;

func (*Service) UploadSaveFilePart

func (s *Service) UploadSaveFilePart(ctx context.Context, request *mtproto.TLUploadSaveFilePart) (*mtproto.Bool, error)

UploadSaveFilePart upload.saveFilePart#b304a621 file_id:long file_part:int bytes:bytes = Bool;

Jump to

Keyboard shortcuts

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