Struct telegram_bot_api::methods::UploadStickerFile
source · [−]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: i64
User identifier of sticker file owner
png_sticker: InputFile
PNG 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 information on Sending Files »
Implementations
Trait Implementations
sourceimpl Clone for UploadStickerFile
impl Clone for UploadStickerFile
sourcefn clone(&self) -> UploadStickerFile
fn clone(&self) -> UploadStickerFile
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UploadStickerFile
impl Debug for UploadStickerFile
sourceimpl<'de> Deserialize<'de> for UploadStickerFile
impl<'de> Deserialize<'de> for UploadStickerFile
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Methods for UploadStickerFile
impl Methods for UploadStickerFile
sourceimpl Serialize for UploadStickerFile
impl Serialize for UploadStickerFile
Auto Trait Implementations
impl RefUnwindSafe for UploadStickerFile
impl Send for UploadStickerFile
impl Sync for UploadStickerFile
impl Unpin for UploadStickerFile
impl UnwindSafe for UploadStickerFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more