Struct teloxide_core::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: UserIdUser 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
sourceimpl Clone for UploadStickerFile
impl Clone for UploadStickerFile
sourcefn clone(&self) -> UploadStickerFileⓘNotable traits for UploadStickerFileimpl Payload for UploadStickerFile type Output = FileMeta;
fn clone(&self) -> UploadStickerFileⓘNotable traits for UploadStickerFileimpl Payload for UploadStickerFile type Output = FileMeta;
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for UploadStickerFile
impl Debug for UploadStickerFile
sourceimpl 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))
sourceimpl Payload for UploadStickerFile
impl Payload for UploadStickerFile
sourcefn 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. Read more
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
impl<T> Erasable for T
impl<T> Erasable for T
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
