aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/StickerFormat.h
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2022-07-13 23:02:46 +0300
committerlevlam <levlam@telegram.org>2022-07-13 23:02:46 +0300
commit7618c9aa64d3a108ac5cf79db9bf8aa26b1c00e3 (patch)
treedaec847a1f72b2c69c98183c78b0096b50268ee0 /td/telegram/StickerFormat.h
parentac4e76edf14510e4310b134a6f759497c5ee19ee (diff)
Add get_sticker_type function.
Diffstat (limited to 'td/telegram/StickerFormat.h')
-rw-r--r--td/telegram/StickerFormat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/td/telegram/StickerFormat.h b/td/telegram/StickerFormat.h
index 6e1d537ee..b367a6cab 100644
--- a/td/telegram/StickerFormat.h
+++ b/td/telegram/StickerFormat.h
@@ -18,6 +18,8 @@ namespace td {
// update store_sticker/store_sticker_set when this type changes
enum class StickerFormat : int32 { Unknown, Webp, Tgs, Webm };
+StickerFormat get_sticker_format(const td_api::object_ptr<td_api::StickerType> &type);
+
StickerFormat get_sticker_format_by_mime_type(Slice mime_type);
StickerFormat get_sticker_format_by_extension(Slice extension);