core

package
v0.87.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaCore

type MediaCore struct {
	logx.Logger
	MD *metadata.RpcMetadata
	// contains filtered or unexported fields
}

func New

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

func (*MediaCore) MediaGetDocument

func (c *MediaCore) MediaGetDocument(in *media.TLMediaGetDocument) (*mtproto.Document, error)

MediaGetDocument media.getDocument id:long = Document;

func (*MediaCore) MediaGetDocumentList

func (c *MediaCore) MediaGetDocumentList(in *media.TLMediaGetDocumentList) (*media.Vector_Document, error)

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

func (*MediaCore) MediaGetEncryptedFile

func (c *MediaCore) MediaGetEncryptedFile(in *media.TLMediaGetEncryptedFile) (*mtproto.EncryptedFile, error)

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

func (*MediaCore) MediaGetPhoto

func (c *MediaCore) MediaGetPhoto(in *media.TLMediaGetPhoto) (*mtproto.Photo, error)

MediaGetPhoto media.getPhoto photo_id:long = Photo;

func (*MediaCore) MediaGetPhotoSizeList

func (c *MediaCore) MediaGetPhotoSizeList(in *media.TLMediaGetPhotoSizeList) (*media.PhotoSizeList, error)

MediaGetPhotoSizeList media.getPhotoSizeList size_id:long = PhotoSizeList;

func (*MediaCore) MediaGetPhotoSizeListList

func (c *MediaCore) MediaGetPhotoSizeListList(in *media.TLMediaGetPhotoSizeListList) (*media.Vector_PhotoSizeList, error)

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

func (*MediaCore) MediaGetVideoSizeList

func (c *MediaCore) MediaGetVideoSizeList(in *media.TLMediaGetVideoSizeList) (*media.VideoSizeList, error)

MediaGetVideoSizeList media.getVideoSizeList size_id = VideoSizeList;

func (*MediaCore) MediaUploadEncryptedFile

func (c *MediaCore) MediaUploadEncryptedFile(in *media.TLMediaUploadEncryptedFile) (*mtproto.EncryptedFile, error)

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

func (*MediaCore) MediaUploadPhotoFile

func (c *MediaCore) MediaUploadPhotoFile(in *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 (*MediaCore) MediaUploadProfilePhotoFile

func (c *MediaCore) MediaUploadProfilePhotoFile(in *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 (*MediaCore) MediaUploadRingtoneFile added in v0.87.4

func (c *MediaCore) MediaUploadRingtoneFile(in *media.TLMediaUploadRingtoneFile) (*mtproto.Document, error)

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

func (*MediaCore) MediaUploadStickerFile

func (c *MediaCore) MediaUploadStickerFile(in *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 (*MediaCore) MediaUploadThemeFile

func (c *MediaCore) MediaUploadThemeFile(in *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 (*MediaCore) MediaUploadWallPaperFile

func (c *MediaCore) MediaUploadWallPaperFile(in *media.TLMediaUploadWallPaperFile) (*mtproto.Document, error)

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

func (*MediaCore) MediaUploadedDocumentMedia

func (c *MediaCore) MediaUploadedDocumentMedia(in *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