diff options
| author | 2024-07-20 17:22:25 +0300 | |
|---|---|---|
| committer | 2024-07-20 17:22:25 +0300 | |
| commit | c70ffd095a6de5cd5b872796a0d82a8c5afc1511 (patch) | |
| tree | 56183274b05a294e357bad4d06b523472a1c4a4a /src/types/Sticker.zig | |
| download | ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.tar.gz ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.tar.xz ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.zip | |
Initial commit
Diffstat (limited to 'src/types/Sticker.zig')
| -rw-r--r-- | src/types/Sticker.zig | 25 |
1 files changed, 25 insertions, 0 deletions
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 @@ | |||
| 1 | const File = @import("File.zig"); | ||
| 2 | const MaskPosition = @import("MaskPosition.zig"); | ||
| 3 | const PhotoSize = @import("PhotoSize.zig"); | ||
| 4 | |||
| 5 | pub const Type = enum { | ||
| 6 | regular, | ||
| 7 | mask, | ||
| 8 | custom_emoji, | ||
| 9 | }; | ||
| 10 | |||
| 11 | file_id: []const u8, | ||
| 12 | file_unique_id: []const u8, | ||
| 13 | type: Type, | ||
| 14 | width: u64, | ||
| 15 | height: u64, | ||
| 16 | is_animated: bool = false, | ||
| 17 | is_video: bool = false, | ||
| 18 | thumbnail: ?PhotoSize = null, | ||
| 19 | emoji: ?[]const u8 = null, | ||
| 20 | set_name: ?[]const u8 = null, | ||
| 21 | premium_animation: ?File = null, | ||
| 22 | mask_position: ?MaskPosition = null, | ||
| 23 | custom_emoji_id: ?[]const u8 = null, | ||
| 24 | needs_repainting: bool = false, | ||
| 25 | file_size: ?u64 = null, | ||