Versions in this module Expand all Collapse all v0 v0.2.18 Mar 8, 2026 Changes in this version + const ChatTypeDM + const ChatTypeGroup + const DefaultBaseURL + const DefaultHTTPTimeout + const DirectionNewer + const DirectionOlder + func IsNotFound(err error) bool + func IsUnauthorized(err error) bool + type APIError = api.APIError + type Account = api.Account + type AccountUser = api.AccountUser + type Attachment = api.Attachment + type AttachmentSize = api.AttachmentSize + type Chat = api.Chat + type Client struct + func NewClient(baseURL, token string, opts ...ClientOption) *Client + func (c *Client) Delete(ctx context.Context, path string) (*http.Response, error) + func (c *Client) DeleteJSON(ctx context.Context, path string, body any) (*http.Response, error) + func (c *Client) Get(ctx context.Context, path string) (*http.Response, error) + func (c *Client) GetChat(ctx context.Context, chatID string) (Chat, error) + func (c *Client) ListAccounts(ctx context.Context) ([]Account, error) + func (c *Client) ListChats(ctx context.Context, opts ListChatsOptions) (ListChatsResponse, error) + func (c *Client) ListMessages(ctx context.Context, chatID string, opts ListMessagesOptions) (ListMessagesResponse, error) + func (c *Client) Post(ctx context.Context, path string, body any) (*http.Response, error) + func (c *Client) PostMultipart(ctx context.Context, path, fieldName, fileName string, file io.Reader, ...) (*http.Response, error) + func (c *Client) Put(ctx context.Context, path string, body any) (*http.Response, error) + func (c *Client) SearchChats(ctx context.Context, opts SearchChatsOptions) (ListChatsResponse, error) + func (c *Client) SearchMessages(ctx context.Context, opts SearchMessagesOptions) (SearchMessagesResponse, error) + func (c *Client) SendMessage(ctx context.Context, chatID string, body SendMessageRequest) (SendMessageResponse, error) + type ClientOption func(*clientOptions) + func WithDebug(debug bool) ClientOption + func WithDebugWriter(w io.Writer) ClientOption + type FlexibleEmoji = api.FlexibleEmoji + type FlexibleString = api.FlexibleString + type ListChatsOptions struct + AccountIDs []string + Cursor string + Direction string + Limit int + Type string + UnreadOnly bool + type ListChatsResponse = api.ListChatsResponse + type ListMessagesOptions struct + Cursor string + Direction string + Limit int + type ListMessagesResponse = api.ListMessagesResponse + type Message = api.Message + type MessagePreview = api.MessagePreview + type Participant = api.Participant + type ParticipantList = api.ParticipantList + type Reaction = api.Reaction + type SearchChatsOptions struct + AccountIDs []string + Cursor string + Direction string + Limit int + Query string + Type string + type SearchMessagesOptions struct + AccountIDs []string + ChatIDs []string + ChatType string + Cursor string + DateAfter *time.Time + DateBefore *time.Time + ExcludeMuted bool + IncludeLowPriority bool + Limit int + Query string + Sender string + type SearchMessagesResponse = api.SearchMessagesResponse + type SendMessageAttachment = api.SendMessageAttachment + type SendMessageRequest = api.SendMessageRequest + type SendMessageResponse = api.SendMessageResponse