GetChats
Retrieve a list of chats with pagination. Request:chats.GetChats → Response: chats.Chats
Maximum number of chats to return (optional)
Snowflake ID of maximum chat ID for pagination (optional)
Snowflake ID of minimum chat ID for pagination (optional)
Chats
Array of conversation objects
Array of user objects referenced in chats
Array of group objects
Array of channel objects
Array of message objects
GetChat
Retrieve a specific chat. Request:chats.GetChat → Response: chats.Chat
Reference to the chat
Chat
The conversation object
Most recent message (optional)
Array of user objects in the chat
Group object if applicable (optional)
Channel object if applicable (optional)
CreateChatInvite
Create an invite for a chat. Request:chats.CreateChatInvite → Response: auth.CreatedInvite
Reference to the chat
Unix timestamp when invite expires (optional)
Maximum number of uses for the invite (optional)
ListChatInvites
List all invites for a chat. Request:chats.ListChatInvites → Response: auth.InviteList
Reference to the chat
DeleteChatInvite
Delete a chat invite. Request:chats.DeleteChatInvite → Response: ()
The invite code to delete
MarkChatRead
Mark a chat as read up to a specific message. Request:chats.MarkChatRead → Response: ()
Reference to the chat
Snowflake ID of the last read message
Number of messages read (optional)
SetTyping
Set typing indicator status in a chat. Request:chats.SetTyping → Response: ()
Reference to the chat
Whether the user is typing
CreateChat
Create a new group chat. Request:chats.CreateChat → Response: types.Group
Array of user references to add to the chat
Name of the group chat
UpdateChat
Update chat properties. Request:chats.UpdateChat → Response: chats.Chat
Reference to the chat
New name for the chat (optional)
RemoveChatMember
Remove a member from a group chat. Request:chats.RemoveChatMember → Response: ()
Reference to the chat
Snowflake ID of the user to remove