Struct teloxide::payloads::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: UserId
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 info on Sending Files »
Implementations§
Trait Implementations§
source§impl Clone for UploadStickerFile
impl Clone for UploadStickerFile
source§impl Debug for UploadStickerFile
impl Debug for UploadStickerFile
source§impl MultipartPayload for UploadStickerFile
impl MultipartPayload for UploadStickerFile
fn copy_files(&self, into: &mut dyn FnMut(InputFile))
fn move_files(&mut self, into: &mut dyn FnMut(InputFile))
source§impl Payload for UploadStickerFile
impl Payload for UploadStickerFile
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates
with
big timeout
), the minimum timeout that should be used.source§impl Serialize for UploadStickerFile
impl Serialize for UploadStickerFile
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
§impl<T> Erasable for T
impl<T> Erasable for T
source§impl<P> HasPayload for Pwhere
P: Payload,
impl<P> HasPayload for Pwhere
P: Payload,
source§fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
Gain mutable access to the underlying payload.
source§fn payload_ref(&self) -> &<P as HasPayload>::Payload
fn payload_ref(&self) -> &<P as HasPayload>::Payload
Gain immutable access to the underlying payload.
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<P> UploadStickerFileSetters for Pwhere
P: HasPayload<Payload = UploadStickerFile>,
impl<P> UploadStickerFileSetters for Pwhere
P: HasPayload<Payload = UploadStickerFile>,
source§fn png_sticker(self, value: InputFile) -> Self
fn png_sticker(self, value: InputFile) -> Self
Setter for
png_sticker
field.