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: 5 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.90.1

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

func (*Service) MediaGetDocument

func (s *Service) MediaGetDocument(ctx context.Context, request *media.TLMediaGetDocument) (*mtproto.Document, error)

MediaGetDocument media.getDocument id:long = Document;

func (*Service) MediaGetDocumentList

func (s *Service) MediaGetDocumentList(ctx context.Context, request *media.TLMediaGetDocumentList) (*media.Vector_Document, error)

MediaGetDocumentList media.getDocumentList id_list:Vector<long> = Vector<Document>;

func (*Service) MediaGetEncryptedFile

func (s *Service) MediaGetEncryptedFile(ctx context.Context, request *media.TLMediaGetEncryptedFile) (*mtproto.EncryptedFile, error)

MediaGetEncryptedFile media.getEncryptedFile id:long access_hash:long = EncryptedFile;

func (*Service) MediaGetPhoto

func (s *Service) MediaGetPhoto(ctx context.Context, request *media.TLMediaGetPhoto) (*mtproto.Photo, error)

MediaGetPhoto media.getPhoto photo_id:long = Photo;

func (*Service) MediaGetPhotoSizeList

func (s *Service) MediaGetPhotoSizeList(ctx context.Context, request *media.TLMediaGetPhotoSizeList) (*media.PhotoSizeList, error)

MediaGetPhotoSizeList media.getPhotoSizeList size_id:long = PhotoSizeList;

func (*Service) MediaGetPhotoSizeListList

func (s *Service) MediaGetPhotoSizeListList(ctx context.Context, request *media.TLMediaGetPhotoSizeListList) (*media.Vector_PhotoSizeList, error)

MediaGetPhotoSizeListList media.getPhotoSizeListList id_list:Vector<long> = Vector<PhotoSizeList>;

func (*Service) MediaGetVideoSizeList

func (s *Service) MediaGetVideoSizeList(ctx context.Context, request *media.TLMediaGetVideoSizeList) (*media.VideoSizeList, error)

MediaGetVideoSizeList media.getVideoSizeList size_id:long = VideoSizeList;

func (*Service) MediaUploadEncryptedFile

func (s *Service) MediaUploadEncryptedFile(ctx context.Context, request *media.TLMediaUploadEncryptedFile) (*mtproto.EncryptedFile, error)

MediaUploadEncryptedFile media.uploadEncryptedFile owner_id:long file:InputEncryptedFile = EncryptedFile;

func (*Service) MediaUploadPhotoFile

func (s *Service) MediaUploadPhotoFile(ctx context.Context, request *media.TLMediaUploadPhotoFile) (*mtproto.Photo, error)

MediaUploadPhotoFile media.uploadPhotoFile flags:# owner_id:long file:InputFile stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = Photo;

func (*Service) MediaUploadProfilePhotoFile

func (s *Service) MediaUploadProfilePhotoFile(ctx context.Context, request *media.TLMediaUploadProfilePhotoFile) (*mtproto.Photo, error)

MediaUploadProfilePhotoFile media.uploadProfilePhotoFile flags:# owner_id:long file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double = Photo;

func (*Service) MediaUploadRingtoneFile added in v0.87.4

func (s *Service) MediaUploadRingtoneFile(ctx context.Context, request *media.TLMediaUploadRingtoneFile) (*mtproto.Document, error)

MediaUploadRingtoneFile media.uploadRingtoneFile flags:# owner_id:long file:InputFile mime_type:string file_name:string = Document;

func (*Service) MediaUploadStickerFile

func (s *Service) MediaUploadStickerFile(ctx context.Context, request *media.TLMediaUploadStickerFile) (*mtproto.Document, error)

MediaUploadStickerFile media.uploadStickerFile flags:# owner_id:long file:InputFile thumb:flags.0?InputFile mime_type:string file_name:string document_attribute_sticker:DocumentAttribute = Document;

func (*Service) MediaUploadThemeFile

func (s *Service) MediaUploadThemeFile(ctx context.Context, request *media.TLMediaUploadThemeFile) (*mtproto.Document, error)

MediaUploadThemeFile media.uploadThemeFile flags:# owner_id:long file:InputFile thumb:flags.0?InputFile mime_type:string file_name:string = Document;

func (*Service) MediaUploadWallPaperFile

func (s *Service) MediaUploadWallPaperFile(ctx context.Context, request *media.TLMediaUploadWallPaperFile) (*mtproto.Document, error)

MediaUploadWallPaperFile media.uploadWallPaperFile owner_id:long file:InputFile mime_type:string admin:Bool = Document;

func (*Service) MediaUploadedDocumentMedia

func (s *Service) MediaUploadedDocumentMedia(ctx context.Context, request *media.TLMediaUploadedDocumentMedia) (*mtproto.MessageMedia, error)

MediaUploadedDocumentMedia media.uploadedDocumentMedia owner_id:long media:InputMedia = MessageMedia;

Jump to

Keyboard shortcuts

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