Documentation ¶
Index ¶
- type MediaCore
- func (c *MediaCore) MediaGetDocument(in *media.TLMediaGetDocument) (*mtproto.Document, error)
- func (c *MediaCore) MediaGetDocumentList(in *media.TLMediaGetDocumentList) (*media.Vector_Document, error)
- func (c *MediaCore) MediaGetEncryptedFile(in *media.TLMediaGetEncryptedFile) (*mtproto.EncryptedFile, error)
- func (c *MediaCore) MediaGetPhoto(in *media.TLMediaGetPhoto) (*mtproto.Photo, error)
- func (c *MediaCore) MediaGetPhotoSizeList(in *media.TLMediaGetPhotoSizeList) (*media.PhotoSizeList, error)
- func (c *MediaCore) MediaGetPhotoSizeListList(in *media.TLMediaGetPhotoSizeListList) (*media.Vector_PhotoSizeList, error)
- func (c *MediaCore) MediaGetVideoSizeList(in *media.TLMediaGetVideoSizeList) (*media.VideoSizeList, error)
- func (c *MediaCore) MediaUploadEncryptedFile(in *media.TLMediaUploadEncryptedFile) (*mtproto.EncryptedFile, error)
- func (c *MediaCore) MediaUploadPhotoFile(in *media.TLMediaUploadPhotoFile) (*mtproto.Photo, error)
- func (c *MediaCore) MediaUploadProfilePhotoFile(in *media.TLMediaUploadProfilePhotoFile) (*mtproto.Photo, error)
- func (c *MediaCore) MediaUploadStickerFile(in *media.TLMediaUploadStickerFile) (*mtproto.Document, error)
- func (c *MediaCore) MediaUploadThemeFile(in *media.TLMediaUploadThemeFile) (*mtproto.Document, error)
- func (c *MediaCore) MediaUploadWallPaperFile(in *media.TLMediaUploadWallPaperFile) (*mtproto.Document, error)
- func (c *MediaCore) MediaUploadedDocumentMedia(in *media.TLMediaUploadedDocumentMedia) (*mtproto.MessageMedia, error)
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 (*MediaCore) MediaGetDocument ¶
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 ¶
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 ¶
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) 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;
Source Files ¶
- core.go
- media.getDocumentList_handler.go
- media.getDocument_handler.go
- media.getEncryptedFile_handler.go
- media.getPhotoSizeListList_handler.go
- media.getPhotoSizeList_handler.go
- media.getPhoto_handler.go
- media.getVideoSizeList_handler.go
- media.uploadEncryptedFile_handler.go
- media.uploadPhotoFile_handler.go
- media.uploadProfilePhotoFile_handler.go
- media.uploadStickerFile_handler.go
- media.uploadThemeFile_handler.go
- media.uploadWallPaperFile_handler.go
- media.uploadedDocumentMedia_handler.go