summaryrefslogtreecommitdiff
path: root/src/main.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/main.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/main.zig')
-rw-r--r--src/main.zig10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig
index 203f4ab..0bc5013 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -101,10 +101,16 @@ fn onNewMember(bot: *Bot, msg: types.Message, new_member: types.User) !void {
101 try new_member.writeFormattedName(w); 101 try new_member.writeFormattedName(w);
102 try w.writeAll("! Be on your bestest behaviour now!!"); 102 try w.writeAll("! Be on your bestest behaviour now!!");
103 103
104 try bot.sendMessage_(.{ 104 try bot.sendAnimation_(.{
105 .chat_id = msg.chat.id, 105 .chat_id = msg.chat.id,
106 .text = sb.items, 106 // TODO: lol
107 .animation = "CgACAgQAAx0CVcPEEgACC9Vmo6_zCxMp3ZNXSMM1nI6nMkIhgwACNwMAAtDmDFMop6BHmV7lUTUE",
108 .duration = 3,
109 .width = 166,
110 .height = 240,
111 .caption = sb.items,
107 .parse_mode = .html, 112 .parse_mode = .html,
113 .show_caption_above_media = true,
108 .reply_parameters = .{ 114 .reply_parameters = .{
109 .allow_sending_without_reply = true, 115 .allow_sending_without_reply = true,
110 .message_id = msg.message_id, 116 .message_id = msg.message_id,