pub struct UploadStickerFile {
pub user_id: i64,
pub png_sticker: InputFile,
}Expand description
Use this method to upload a .PNG file with a sticker for later use
in createNewStickerSet and addStickerToSet methods (can be used multiple times).
Returns the uploaded File on success.
Fields§
§user_id: i64User identifier of sticker file owner
png_sticker: InputFilePNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. More info on Sending Files »
Implementations§
Trait Implementations§
Source§impl Clone for UploadStickerFile
impl Clone for UploadStickerFile
Source§fn clone(&self) -> UploadStickerFile
fn clone(&self) -> UploadStickerFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FileMethod for UploadStickerFile
impl FileMethod for UploadStickerFile
Source§impl Serialize for UploadStickerFile
impl Serialize for UploadStickerFile
Auto Trait Implementations§
impl Freeze for UploadStickerFile
impl RefUnwindSafe for UploadStickerFile
impl Send for UploadStickerFile
impl Sync for UploadStickerFile
impl Unpin for UploadStickerFile
impl UnwindSafe for UploadStickerFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more