summaryrefslogtreecommitdiff
path: root/src/Bot.zig
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2024-07-26 17:38:38 +0300
committerGravatar Uko Kokņevičs2024-07-26 17:38:38 +0300
commit0c85cde5598c83414add4e3659a924055df13f46 (patch)
tree8006497e849bd22ee0ccf7877649260330c0753f /src/Bot.zig
parentAdded msginfo command (diff)
downloadukkobot-0c85cde5598c83414add4e3659a924055df13f46.tar.gz
ukkobot-0c85cde5598c83414add4e3659a924055df13f46.tar.xz
ukkobot-0c85cde5598c83414add4e3659a924055df13f46.zip
New members are now greeted by a GIF
Diffstat (limited to 'src/Bot.zig')
-rw-r--r--src/Bot.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Bot.zig b/src/Bot.zig
index 0346d2c..49c5df3 100644
--- a/src/Bot.zig
+++ b/src/Bot.zig
@@ -74,6 +74,14 @@ pub inline fn getUsername(self: *Bot) ![]const u8 {
74 return self.username.?; 74 return self.username.?;
75} 75}
76 76
77pub inline fn sendAnimation(self: *Bot, args: types.SendAnimationParams) !Parsed(types.Message) {
78 return self.post(types.Message, "sendAnimation", args);
79}
80
81pub inline fn sendAnimation_(self: *Bot, args: types.SendAnimationParams) !void {
82 (try self.sendAnimation(args)).deinit();
83}
84
77pub inline fn sendMessage(self: *Bot, args: types.SendMessageParams) !Parsed(types.Message) { 85pub inline fn sendMessage(self: *Bot, args: types.SendMessageParams) !Parsed(types.Message) {
78 return self.post(types.Message, "sendMessage", args); 86 return self.post(types.Message, "sendMessage", args);
79} 87}