summaryrefslogtreecommitdiff
path: root/src/types/Chat.zig
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2024-07-20 17:22:25 +0300
committerGravatar Uko Kokņevičs2024-07-20 17:22:25 +0300
commitc70ffd095a6de5cd5b872796a0d82a8c5afc1511 (patch)
tree56183274b05a294e357bad4d06b523472a1c4a4a /src/types/Chat.zig
downloadukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.tar.gz
ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.tar.xz
ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.zip
Initial commit
Diffstat (limited to 'src/types/Chat.zig')
-rw-r--r--src/types/Chat.zig14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/types/Chat.zig b/src/types/Chat.zig
new file mode 100644
index 0000000..f44e480
--- /dev/null
+++ b/src/types/Chat.zig
@@ -0,0 +1,14 @@
1pub const Type = enum {
2 private,
3 group,
4 supergroup,
5 channel,
6};
7
8id: i64,
9type: Type,
10title: ?[]const u8 = null,
11username: ?[]const u8 = null,
12first_name: ?[]const u8 = null,
13last_name: ?[]const u8 = null,
14is_forum: bool = false,