Struct carapax::types::SetStickerSetThumbnail
source · pub struct SetStickerSetThumbnail { /* private fields */ }
Expand description
Sets a thumbnail of a sticker set.
Implementations§
source§impl SetStickerSetThumbnail
impl SetStickerSetThumbnail
sourcepub fn new<N>(
name: N,
user_id: i64,
format: StickerFormat
) -> SetStickerSetThumbnail
pub fn new<N>( name: N, user_id: i64, format: StickerFormat ) -> SetStickerSetThumbnail
Creates a new SetStickerSetThumbnail
.
§Arguments
name
- Sticker set name.user_id
- User identifier of the sticker set owner.format
- Format of the thumbnail.
sourcepub fn with_thumbnail<T>(self, value: T) -> SetStickerSetThumbnail
pub fn with_thumbnail<T>(self, value: T) -> SetStickerSetThumbnail
Sets a new thumbnail.
§Arguments
value
- A WEBP or PNG image with the thumbnail.
Must be up to 128 kilobytes in size and have a width and height of exactly 100px, or a .TGS animation with a thumbnail up to 32 kilobytes in size (see https://core.telegram.org/stickers#animated-sticker-requirements for animated sticker technical requirements), or a WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#video-sticker-requirements for video sticker technical requirements.
Animated and video sticker set thumbnails can’t be uploaded via HTTP URL. If omitted, then the thumbnail is dropped and the first sticker is used as the thumbnail.
Trait Implementations§
source§impl Debug for SetStickerSetThumbnail
impl Debug for SetStickerSetThumbnail
source§impl Method for SetStickerSetThumbnail
impl Method for SetStickerSetThumbnail
Auto Trait Implementations§
impl Freeze for SetStickerSetThumbnail
impl !RefUnwindSafe for SetStickerSetThumbnail
impl Send for SetStickerSetThumbnail
impl Sync for SetStickerSetThumbnail
impl Unpin for SetStickerSetThumbnail
impl !UnwindSafe for SetStickerSetThumbnail
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
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<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more