Enum teloxide::types::InputSticker
source · Expand description
Sticker file that may be uploaded to telegram.
Variants§
Png(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.
Pass InputFile::file_id
to send a file that exists on
the Telegram servers (recommended), pass an InputFile::url
for
Telegram to get a .webp file from the Internet, or upload a new one
using InputFile::file
, InputFile::memory
or InputFile::read
.
More info on Sending Files ».
Tgs(InputFile)
TGS animation with the sticker, uploaded using multipart/form-data.
See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements.
Webm(InputFile)
WEBM video with the sticker, uploaded using multipart/form-data.
See https://core.telegram.org/stickers#video-sticker-requirements for technical requirements.
Trait Implementations§
source§impl Clone for InputSticker
impl Clone for InputSticker
source§fn clone(&self) -> InputSticker
fn clone(&self) -> InputSticker
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more