docs: That Viewtype::Sticker may be changed to Image and how to disable that (#6352)

This commit is contained in:
iequidoo
2024-12-20 16:50:27 -03:00
committed by iequidoo
parent 0cadfe34ae
commit 7d7a2453a9
3 changed files with 8 additions and 0 deletions

View File

@@ -2094,6 +2094,9 @@ pub enum Viewtype {
Gif = 21,
/// Message containing a sticker, similar to image.
/// NB: When sending, the message viewtype may be changed to `Image` by some heuristics like
/// checking for transparent pixels. Use `Message::force_sticker()` to disable them.
///
/// If possible, the ui should display the image without borders in a transparent way.
/// A click on a sticker will offer to install the sticker set in some future.
Sticker = 23,