From c70ffd095a6de5cd5b872796a0d82a8c5afc1511 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Sat, 20 Jul 2024 17:22:25 +0300 Subject: Initial commit --- src/types/Sticker.zig | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/types/Sticker.zig (limited to 'src/types/Sticker.zig') diff --git a/src/types/Sticker.zig b/src/types/Sticker.zig new file mode 100644 index 0000000..e28df69 --- /dev/null +++ b/src/types/Sticker.zig @@ -0,0 +1,25 @@ +const File = @import("File.zig"); +const MaskPosition = @import("MaskPosition.zig"); +const PhotoSize = @import("PhotoSize.zig"); + +pub const Type = enum { + regular, + mask, + custom_emoji, +}; + +file_id: []const u8, +file_unique_id: []const u8, +type: Type, +width: u64, +height: u64, +is_animated: bool = false, +is_video: bool = false, +thumbnail: ?PhotoSize = null, +emoji: ?[]const u8 = null, +set_name: ?[]const u8 = null, +premium_animation: ?File = null, +mask_position: ?MaskPosition = null, +custom_emoji_id: ?[]const u8 = null, +needs_repainting: bool = false, +file_size: ?u64 = null, -- cgit v1.2.3