Versions in this module Expand all Collapse all v5 v5.0.0 May 6, 2026 Changes in this version + const AttachmentTypeAudio + const AttachmentTypeImg + const AttachmentTypeUnknown + const AttachmentTypeVideo + const MessageTypeAudio + const MessageTypeFile + const MessageTypeImage + const MessageTypeLocation + const MessageTypeNotice + const MessageTypeReaction + const MessageTypeSticker + const MessageTypeText + const MessageTypeVideo + const MessageTypeVoice + func Bool(b bool) param.Opt[bool] + func BoolPtr(v bool) *bool + func DefaultClientOptions() []option.RequestOption + func File(rdr io.Reader, filename string, contentType string) file + func Float(f float64) param.Opt[float64] + func FloatPtr(v float64) *float64 + func Int(i int64) param.Opt[int64] + func IntPtr(v int64) *int64 + func Opt[T comparable](v T) param.Opt[T] + func Ptr[T any](v T) *T + func String(s string) param.Opt[string] + func StringPtr(v string) *string + func Time(t time.Time) param.Opt[time.Time] + func TimePtr(v time.Time) *time.Time + type Account struct + AccountID string + Bridge AccountBridge + JSON struct{ ... } + Network string + User shared.User + func (r *Account) UnmarshalJSON(data []byte) error + func (r Account) RawJSON() string + type AccountBridge struct + ID string + JSON struct{ ... } + Provider string + Type string + func (r *AccountBridge) UnmarshalJSON(data []byte) error + func (r AccountBridge) RawJSON() string + type AccountContactListParams struct + Cursor param.Opt[string] + Direction AccountContactListParamsDirection + Limit param.Opt[int64] + Query param.Opt[string] + func (r AccountContactListParams) URLQuery() (v url.Values, err error) + type AccountContactListParamsDirection string + const AccountContactListParamsDirectionAfter + const AccountContactListParamsDirectionBefore + type AccountContactSearchParams struct + Query string + func (r AccountContactSearchParams) URLQuery() (v url.Values, err error) + type AccountContactSearchResponse struct + Items []shared.User + JSON struct{ ... } + func (r *AccountContactSearchResponse) UnmarshalJSON(data []byte) error + func (r AccountContactSearchResponse) RawJSON() string + type AccountContactService struct + Options []option.RequestOption + func NewAccountContactService(opts ...option.RequestOption) (r AccountContactService) + func (r *AccountContactService) List(ctx context.Context, accountID string, query AccountContactListParams, ...) (res *pagination.CursorSearch[shared.User], err error) + func (r *AccountContactService) ListAutoPaging(ctx context.Context, accountID string, query AccountContactListParams, ...) *pagination.CursorSearchAutoPager[shared.User] + func (r *AccountContactService) Search(ctx context.Context, accountID string, query AccountContactSearchParams, ...) (res *AccountContactSearchResponse, err error) + type AccountService struct + Contacts AccountContactService + Options []option.RequestOption + func NewAccountService(opts ...option.RequestOption) (r AccountService) + func (r *AccountService) List(ctx context.Context, opts ...option.RequestOption) (res *[]Account, err error) + type AssetDownloadParams struct + URL string + func (r *AssetDownloadParams) UnmarshalJSON(data []byte) error + func (r AssetDownloadParams) MarshalJSON() (data []byte, err error) + type AssetDownloadResponse struct + Error string + JSON struct{ ... } + SrcURL string + func (r *AssetDownloadResponse) UnmarshalJSON(data []byte) error + func (r AssetDownloadResponse) RawJSON() string + type AssetServeParams struct + URL string + func (r AssetServeParams) URLQuery() (v url.Values, err error) + type AssetService struct + Options []option.RequestOption + func NewAssetService(opts ...option.RequestOption) (r AssetService) + func (r *AssetService) Download(ctx context.Context, body AssetDownloadParams, opts ...option.RequestOption) (res *AssetDownloadResponse, err error) + func (r *AssetService) Serve(ctx context.Context, query AssetServeParams, opts ...option.RequestOption) (res *http.Response, err error) + func (r *AssetService) Upload(ctx context.Context, body AssetUploadParams, opts ...option.RequestOption) (res *AssetUploadResponse, err error) + func (r *AssetService) UploadBase64(ctx context.Context, body AssetUploadBase64Params, ...) (res *AssetUploadBase64Response, err error) + type AssetUploadBase64Params struct + Content string + FileName param.Opt[string] + MimeType param.Opt[string] + func (r *AssetUploadBase64Params) UnmarshalJSON(data []byte) error + func (r AssetUploadBase64Params) MarshalJSON() (data []byte, err error) + type AssetUploadBase64Response struct + Duration float64 + Error string + FileName string + FileSize float64 + Height float64 + JSON struct{ ... } + MimeType string + SrcURL string + UploadID string + Width float64 + func (r *AssetUploadBase64Response) UnmarshalJSON(data []byte) error + func (r AssetUploadBase64Response) RawJSON() string + type AssetUploadParams struct + File io.Reader + FileName param.Opt[string] + MimeType param.Opt[string] + func (r AssetUploadParams) MarshalMultipart() (data []byte, contentType string, err error) + type AssetUploadResponse struct + Duration float64 + Error string + FileName string + FileSize float64 + Height float64 + JSON struct{ ... } + MimeType string + SrcURL string + UploadID string + Width float64 + func (r *AssetUploadResponse) UnmarshalJSON(data []byte) error + func (r AssetUploadResponse) RawJSON() string + type Attachment = shared.Attachment + type AttachmentSize = shared.AttachmentSize + type AttachmentTranscription = shared.AttachmentTranscription + type AttachmentType = shared.AttachmentType + type Chat struct + AccountID string + Capabilities ChatCapabilities + Description string + Draft ChatDraft + ID string + ImgURL string + IsArchived bool + IsLowPriority bool + IsMarkedUnread bool + IsMuted bool + IsPinned bool + IsReadOnly bool + JSON struct{ ... } + LastActivity time.Time + LastReadMessageSortKey string + LocalChatID string + MessageExpirySeconds int64 + Network string + Participants ChatParticipants + Reminder ChatReminder + Snooze ChatSnooze + Title string + Type ChatType + UnreadCount int64 + UnreadMentionsCount int64 + func (r *Chat) UnmarshalJSON(data []byte) error + func (r Chat) RawJSON() string + type ChatArchiveParams struct + Archived param.Opt[bool] + func (r *ChatArchiveParams) UnmarshalJSON(data []byte) error + func (r ChatArchiveParams) MarshalJSON() (data []byte, err error) + type ChatCapabilities struct + AllowedReactions []string + Archive bool + Attachments map[string]ChatCapabilitiesAttachment + CustomEmojiReactions bool + Delete int64 + DeleteChat bool + DeleteChatForEveryone bool + DeleteForMe bool + DeleteMaxAge int64 + DisappearingTimer ChatCapabilitiesDisappearingTimer + Edit int64 + EditMaxAge int64 + EditMaxCount int64 + Formatting map[string]int64 + JSON struct{ ... } + LocationMessage int64 + MarkAsUnread bool + MaxTextLength int64 + MessageRequest ChatCapabilitiesMessageRequest + ParticipantActions ChatCapabilitiesParticipantActions + Poll int64 + Reaction int64 + ReactionCount int64 + ReadReceipts bool + Reply int64 + State ChatCapabilitiesState + Thread int64 + TypingNotifications bool + func (r *ChatCapabilities) UnmarshalJSON(data []byte) error + func (r ChatCapabilities) RawJSON() string + type ChatCapabilitiesAttachment struct + Caption int64 + JSON struct{ ... } + MaxCaptionLength int64 + MaxDuration int64 + MaxHeight int64 + MaxSize int64 + MaxWidth int64 + MimeTypes map[string]int64 + ViewOnce bool + func (r *ChatCapabilitiesAttachment) UnmarshalJSON(data []byte) error + func (r ChatCapabilitiesAttachment) RawJSON() string + type ChatCapabilitiesDisappearingTimer struct + JSON struct{ ... } + OmitEmptyTimer bool + Timers []int64 + Types []string + func (r *ChatCapabilitiesDisappearingTimer) UnmarshalJSON(data []byte) error + func (r ChatCapabilitiesDisappearingTimer) RawJSON() string + type ChatCapabilitiesMessageRequest struct + AcceptWithButton int64 + AcceptWithMessage int64 + JSON struct{ ... } + func (r *ChatCapabilitiesMessageRequest) UnmarshalJSON(data []byte) error + func (r ChatCapabilitiesMessageRequest) RawJSON() string + type ChatCapabilitiesParticipantActions struct + Ban int64 + Invite int64 + JSON struct{ ... } + Kick int64 + Leave int64 + RevokeInvite int64 + func (r *ChatCapabilitiesParticipantActions) UnmarshalJSON(data []byte) error + func (r ChatCapabilitiesParticipantActions) RawJSON() string + type ChatCapabilitiesState struct + Avatar ChatCapabilitiesStateAvatar + Description ChatCapabilitiesStateDescription + DisappearingTimer ChatCapabilitiesStateDisappearingTimer + JSON struct{ ... } + Title ChatCapabilitiesStateTitle + func (r *ChatCapabilitiesState) UnmarshalJSON(data []byte) error + func (r ChatCapabilitiesState) RawJSON() string + type ChatCapabilitiesStateAvatar struct + JSON struct{ ... } + Level int64 + func (r *ChatCapabilitiesStateAvatar) UnmarshalJSON(data []byte) error + func (r ChatCapabilitiesStateAvatar) RawJSON() string + type ChatCapabilitiesStateDescription struct + JSON struct{ ... } + Level int64 + func (r *ChatCapabilitiesStateDescription) UnmarshalJSON(data []byte) error + func (r ChatCapabilitiesStateDescription) RawJSON() string + type ChatCapabilitiesStateDisappearingTimer struct + JSON struct{ ... } + Level int64 + func (r *ChatCapabilitiesStateDisappearingTimer) UnmarshalJSON(data []byte) error + func (r ChatCapabilitiesStateDisappearingTimer) RawJSON() string + type ChatCapabilitiesStateTitle struct + JSON struct{ ... } + Level int64 + func (r *ChatCapabilitiesStateTitle) UnmarshalJSON(data []byte) error + func (r ChatCapabilitiesStateTitle) RawJSON() string + type ChatDraft struct + Attachments map[string]ChatDraftAttachment + JSON struct{ ... } + Text string + func (r *ChatDraft) UnmarshalJSON(data []byte) error + func (r ChatDraft) RawJSON() string + type ChatDraftAttachment struct + AudioDurationSeconds float64 + FileName string + FilePath string + FileSize float64 + ID string + JSON struct{ ... } + MimeType string + Size ChatDraftAttachmentSize + StickerID string + Type string + func (r *ChatDraftAttachment) UnmarshalJSON(data []byte) error + func (r ChatDraftAttachment) RawJSON() string + type ChatDraftAttachmentSize struct + Height float64 + JSON struct{ ... } + Width float64 + func (r *ChatDraftAttachmentSize) UnmarshalJSON(data []byte) error + func (r ChatDraftAttachmentSize) RawJSON() string + type ChatGetParams struct + MaxParticipantCount param.Opt[int64] + func (r ChatGetParams) URLQuery() (v url.Values, err error) + type ChatListParams struct + AccountIDs []string + Cursor param.Opt[string] + Direction ChatListParamsDirection + func (r ChatListParams) URLQuery() (v url.Values, err error) + type ChatListParamsDirection string + const ChatListParamsDirectionAfter + const ChatListParamsDirectionBefore + type ChatListResponse struct + JSON struct{ ... } + Preview shared.Message + func (r *ChatListResponse) UnmarshalJSON(data []byte) error + func (r ChatListResponse) RawJSON() string + type ChatMarkReadParams struct + MessageID param.Opt[string] + func (r *ChatMarkReadParams) UnmarshalJSON(data []byte) error + func (r ChatMarkReadParams) MarshalJSON() (data []byte, err error) + type ChatMarkUnreadParams struct + MessageID param.Opt[string] + func (r *ChatMarkUnreadParams) UnmarshalJSON(data []byte) error + func (r ChatMarkUnreadParams) MarshalJSON() (data []byte, err error) + type ChatMessageReactionAddParams struct + ChatID string + ReactionKey string + TransactionID param.Opt[string] + func (r *ChatMessageReactionAddParams) UnmarshalJSON(data []byte) error + func (r ChatMessageReactionAddParams) MarshalJSON() (data []byte, err error) + type ChatMessageReactionAddResponse struct + ChatID string + JSON struct{ ... } + MessageID string + ReactionKey string + Success bool + TransactionID string + func (r *ChatMessageReactionAddResponse) UnmarshalJSON(data []byte) error + func (r ChatMessageReactionAddResponse) RawJSON() string + type ChatMessageReactionDeleteParams struct + ChatID string + MessageID string + type ChatMessageReactionDeleteResponse struct + ChatID string + JSON struct{ ... } + MessageID string + ReactionKey string + Success bool + func (r *ChatMessageReactionDeleteResponse) UnmarshalJSON(data []byte) error + func (r ChatMessageReactionDeleteResponse) RawJSON() string + type ChatMessageReactionService struct + Options []option.RequestOption + func NewChatMessageReactionService(opts ...option.RequestOption) (r ChatMessageReactionService) + func (r *ChatMessageReactionService) Add(ctx context.Context, messageID string, params ChatMessageReactionAddParams, ...) (res *ChatMessageReactionAddResponse, err error) + func (r *ChatMessageReactionService) Delete(ctx context.Context, reactionKey string, body ChatMessageReactionDeleteParams, ...) (res *ChatMessageReactionDeleteResponse, err error) + type ChatMessageService struct + Options []option.RequestOption + Reactions ChatMessageReactionService + func NewChatMessageService(opts ...option.RequestOption) (r ChatMessageService) + type ChatNewParams struct + AccountID string + MessageText param.Opt[string] + ParticipantIDs []string + Title param.Opt[string] + Type ChatNewParamsType + func (r *ChatNewParams) UnmarshalJSON(data []byte) error + func (r ChatNewParams) MarshalJSON() (data []byte, err error) + type ChatNewParamsType string + const ChatNewParamsTypeGroup + const ChatNewParamsTypeSingle + type ChatNewResponse struct + ChatID string + JSON struct{ ... } + Status string + func (r *ChatNewResponse) UnmarshalJSON(data []byte) error + func (r ChatNewResponse) RawJSON() string + type ChatNotifyAnywayParams struct + func (r *ChatNotifyAnywayParams) UnmarshalJSON(data []byte) error + func (r ChatNotifyAnywayParams) MarshalJSON() (data []byte, err error) + type ChatParticipants struct + HasMore bool + Items []ChatParticipantsItem + JSON struct{ ... } + Total int64 + func (r *ChatParticipants) UnmarshalJSON(data []byte) error + func (r ChatParticipants) RawJSON() string + type ChatParticipantsItem struct + IsAdmin bool + IsNetworkBot bool + IsPending bool + JSON struct{ ... } + func (r *ChatParticipantsItem) UnmarshalJSON(data []byte) error + func (r ChatParticipantsItem) RawJSON() string + type ChatReminder struct + DismissOnIncomingMessage bool + JSON struct{ ... } + RemindAt time.Time + func (r *ChatReminder) UnmarshalJSON(data []byte) error + func (r ChatReminder) RawJSON() string + type ChatReminderNewParams struct + Reminder ChatReminderNewParamsReminder + func (r *ChatReminderNewParams) UnmarshalJSON(data []byte) error + func (r ChatReminderNewParams) MarshalJSON() (data []byte, err error) + type ChatReminderNewParamsReminder struct + DismissOnIncomingMessage param.Opt[bool] + RemindAt time.Time + func (r *ChatReminderNewParamsReminder) UnmarshalJSON(data []byte) error + func (r ChatReminderNewParamsReminder) MarshalJSON() (data []byte, err error) + type ChatReminderService struct + Options []option.RequestOption + func NewChatReminderService(opts ...option.RequestOption) (r ChatReminderService) + func (r *ChatReminderService) Delete(ctx context.Context, chatID string, opts ...option.RequestOption) (err error) + func (r *ChatReminderService) New(ctx context.Context, chatID string, body ChatReminderNewParams, ...) (err error) + type ChatSearchParams struct + AccountIDs []string + Cursor param.Opt[string] + Direction ChatSearchParamsDirection + Inbox ChatSearchParamsInbox + IncludeMuted param.Opt[bool] + LastActivityAfter param.Opt[time.Time] + LastActivityBefore param.Opt[time.Time] + Limit param.Opt[int64] + Query param.Opt[string] + Scope ChatSearchParamsScope + Type ChatSearchParamsType + UnreadOnly param.Opt[bool] + func (r ChatSearchParams) URLQuery() (v url.Values, err error) + type ChatSearchParamsDirection string + const ChatSearchParamsDirectionAfter + const ChatSearchParamsDirectionBefore + type ChatSearchParamsInbox string + const ChatSearchParamsInboxArchive + const ChatSearchParamsInboxLowPriority + const ChatSearchParamsInboxPrimary + type ChatSearchParamsScope string + const ChatSearchParamsScopeParticipants + const ChatSearchParamsScopeTitles + type ChatSearchParamsType string + const ChatSearchParamsTypeAny + const ChatSearchParamsTypeGroup + const ChatSearchParamsTypeSingle + type ChatService struct + Messages ChatMessageService + Options []option.RequestOption + Reminders ChatReminderService + func NewChatService(opts ...option.RequestOption) (r ChatService) + func (r *ChatService) Archive(ctx context.Context, chatID string, body ChatArchiveParams, ...) (err error) + func (r *ChatService) Get(ctx context.Context, chatID string, query ChatGetParams, ...) (res *Chat, err error) + func (r *ChatService) List(ctx context.Context, query ChatListParams, opts ...option.RequestOption) (res *pagination.CursorNoLimit[ChatListResponse], err error) + func (r *ChatService) ListAutoPaging(ctx context.Context, query ChatListParams, opts ...option.RequestOption) *pagination.CursorNoLimitAutoPager[ChatListResponse] + func (r *ChatService) MarkRead(ctx context.Context, chatID string, body ChatMarkReadParams, ...) (res *Chat, err error) + func (r *ChatService) MarkUnread(ctx context.Context, chatID string, body ChatMarkUnreadParams, ...) (res *Chat, err error) + func (r *ChatService) New(ctx context.Context, body ChatNewParams, opts ...option.RequestOption) (res *ChatNewResponse, err error) + func (r *ChatService) NotifyAnyway(ctx context.Context, chatID string, body ChatNotifyAnywayParams, ...) (res *Chat, err error) + func (r *ChatService) Search(ctx context.Context, query ChatSearchParams, opts ...option.RequestOption) (res *pagination.CursorSearch[Chat], err error) + func (r *ChatService) SearchAutoPaging(ctx context.Context, query ChatSearchParams, opts ...option.RequestOption) *pagination.CursorSearchAutoPager[Chat] + func (r *ChatService) Start(ctx context.Context, body ChatStartParams, opts ...option.RequestOption) (res *ChatStartResponse, err error) + func (r *ChatService) Update(ctx context.Context, chatID string, body ChatUpdateParams, ...) (res *Chat, err error) + type ChatSnooze struct + JSON struct{ ... } + SnoozeUntil time.Time + UserSnoozedAt time.Time + func (r *ChatSnooze) UnmarshalJSON(data []byte) error + func (r ChatSnooze) RawJSON() string + type ChatStartParams struct + AccountID string + AllowInvite param.Opt[bool] + MessageText param.Opt[string] + User ChatStartParamsUser + func (r *ChatStartParams) UnmarshalJSON(data []byte) error + func (r ChatStartParams) MarshalJSON() (data []byte, err error) + type ChatStartParamsUser struct + Email param.Opt[string] + FullName param.Opt[string] + ID param.Opt[string] + PhoneNumber param.Opt[string] + Username param.Opt[string] + func (r *ChatStartParamsUser) UnmarshalJSON(data []byte) error + func (r ChatStartParamsUser) MarshalJSON() (data []byte, err error) + type ChatStartResponse struct + ChatID string + JSON struct{ ... } + Status string + func (r *ChatStartResponse) UnmarshalJSON(data []byte) error + func (r ChatStartResponse) RawJSON() string + type ChatType string + const ChatTypeGroup + const ChatTypeSingle + type ChatUpdateParams struct + Description param.Opt[string] + Draft ChatUpdateParamsDraft + ImgURL param.Opt[string] + IsArchived param.Opt[bool] + IsLowPriority param.Opt[bool] + IsMuted param.Opt[bool] + IsPinned param.Opt[bool] + MessageExpirySeconds param.Opt[int64] + Title param.Opt[string] + func (r *ChatUpdateParams) UnmarshalJSON(data []byte) error + func (r ChatUpdateParams) MarshalJSON() (data []byte, err error) + type ChatUpdateParamsDraft struct + Attachments map[string]ChatUpdateParamsDraftAttachment + Text string + func (r *ChatUpdateParamsDraft) UnmarshalJSON(data []byte) error + func (r ChatUpdateParamsDraft) MarshalJSON() (data []byte, err error) + type ChatUpdateParamsDraftAttachment struct + Duration param.Opt[float64] + FileName param.Opt[string] + ID param.Opt[string] + MimeType param.Opt[string] + Size ChatUpdateParamsDraftAttachmentSize + Type string + UploadID string + func (r *ChatUpdateParamsDraftAttachment) UnmarshalJSON(data []byte) error + func (r ChatUpdateParamsDraftAttachment) MarshalJSON() (data []byte, err error) + type ChatUpdateParamsDraftAttachmentSize struct + Height float64 + Width float64 + func (r *ChatUpdateParamsDraftAttachmentSize) UnmarshalJSON(data []byte) error + func (r ChatUpdateParamsDraftAttachmentSize) MarshalJSON() (data []byte, err error) + type Client struct + Accounts AccountService + Assets AssetService + Chats ChatService + Info InfoService + Messages MessageService + Options []option.RequestOption + func NewClient(opts ...option.RequestOption) (r Client) + func (r *Client) Delete(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) Execute(ctx context.Context, method string, path string, params any, res any, ...) error + func (r *Client) Focus(ctx context.Context, body FocusParams, opts ...option.RequestOption) (res *FocusResponse, err error) + func (r *Client) Get(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) Patch(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) Post(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) Put(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) Search(ctx context.Context, query SearchParams, opts ...option.RequestOption) (res *SearchResponse, err error) + type Error = apierror.Error + type FocusParams struct + ChatID param.Opt[string] + DraftAttachmentPath param.Opt[string] + DraftText param.Opt[string] + MessageID param.Opt[string] + func (r *FocusParams) UnmarshalJSON(data []byte) error + func (r FocusParams) MarshalJSON() (data []byte, err error) + type FocusResponse struct + JSON struct{ ... } + Success bool + func (r *FocusResponse) UnmarshalJSON(data []byte) error + func (r FocusResponse) RawJSON() string + type InfoGetResponse struct + App InfoGetResponseApp + Endpoints InfoGetResponseEndpoints + JSON struct{ ... } + Platform InfoGetResponsePlatform + Server InfoGetResponseServer + func (r *InfoGetResponse) UnmarshalJSON(data []byte) error + func (r InfoGetResponse) RawJSON() string + type InfoGetResponseApp struct + BundleID string + JSON struct{ ... } + Name string + Version string + func (r *InfoGetResponseApp) UnmarshalJSON(data []byte) error + func (r InfoGetResponseApp) RawJSON() string + type InfoGetResponseEndpoints struct + JSON struct{ ... } + Mcp string + OAuth InfoGetResponseEndpointsOAuth + Spec string + WsEvents string + func (r *InfoGetResponseEndpoints) UnmarshalJSON(data []byte) error + func (r InfoGetResponseEndpoints) RawJSON() string + type InfoGetResponseEndpointsOAuth struct + AuthorizationEndpoint string + IntrospectionEndpoint string + JSON struct{ ... } + RegistrationEndpoint string + RevocationEndpoint string + TokenEndpoint string + UserinfoEndpoint string + func (r *InfoGetResponseEndpointsOAuth) UnmarshalJSON(data []byte) error + func (r InfoGetResponseEndpointsOAuth) RawJSON() string + type InfoGetResponsePlatform struct + Arch string + JSON struct{ ... } + Os string + Release string + func (r *InfoGetResponsePlatform) UnmarshalJSON(data []byte) error + func (r InfoGetResponsePlatform) RawJSON() string + type InfoGetResponseServer struct + BaseURL string + Hostname string + JSON struct{ ... } + McpEnabled bool + Port int64 + RemoteAccess bool + Status string + func (r *InfoGetResponseServer) UnmarshalJSON(data []byte) error + func (r InfoGetResponseServer) RawJSON() string + type InfoService struct + Options []option.RequestOption + func NewInfoService(opts ...option.RequestOption) (r InfoService) + func (r *InfoService) Get(ctx context.Context, opts ...option.RequestOption) (res *InfoGetResponse, err error) + type Message = shared.Message + type MessageDeleteParams struct + ChatID string + ForEveryone param.Opt[bool] + func (r MessageDeleteParams) URLQuery() (v url.Values, err error) + type MessageGetParams struct + ChatID string + type MessageLink = shared.MessageLink + type MessageLinkImgSize = shared.MessageLinkImgSize + type MessageListParams struct + Cursor param.Opt[string] + Direction MessageListParamsDirection + func (r MessageListParams) URLQuery() (v url.Values, err error) + type MessageListParamsDirection string + const MessageListParamsDirectionAfter + const MessageListParamsDirectionBefore + type MessageSearchParams struct + AccountIDs []string + ChatIDs []string + ChatType MessageSearchParamsChatType + Cursor param.Opt[string] + DateAfter param.Opt[time.Time] + DateBefore param.Opt[time.Time] + Direction MessageSearchParamsDirection + ExcludeLowPriority param.Opt[bool] + IncludeMuted param.Opt[bool] + Limit param.Opt[int64] + MediaTypes []string + Query param.Opt[string] + Sender param.Opt[string] + func (r MessageSearchParams) URLQuery() (v url.Values, err error) + type MessageSearchParamsChatType string + const MessageSearchParamsChatTypeGroup + const MessageSearchParamsChatTypeSingle + type MessageSearchParamsDirection string + const MessageSearchParamsDirectionAfter + const MessageSearchParamsDirectionBefore + type MessageSeenByParticipantItemUnion = shared.MessageSeenByParticipantItemUnion + type MessageSeenUnion = shared.MessageSeenUnion + type MessageSendParams struct + Attachment MessageSendParamsAttachment + ReplyToMessageID param.Opt[string] + Text param.Opt[string] + func (r *MessageSendParams) UnmarshalJSON(data []byte) error + func (r MessageSendParams) MarshalJSON() (data []byte, err error) + type MessageSendParamsAttachment struct + Duration param.Opt[float64] + FileName param.Opt[string] + MimeType param.Opt[string] + Size MessageSendParamsAttachmentSize + Type string + UploadID string + func (r *MessageSendParamsAttachment) UnmarshalJSON(data []byte) error + func (r MessageSendParamsAttachment) MarshalJSON() (data []byte, err error) + type MessageSendParamsAttachmentSize struct + Height float64 + Width float64 + func (r *MessageSendParamsAttachmentSize) UnmarshalJSON(data []byte) error + func (r MessageSendParamsAttachmentSize) MarshalJSON() (data []byte, err error) + type MessageSendResponse struct + ChatID string + JSON struct{ ... } + PendingMessageID string + func (r *MessageSendResponse) UnmarshalJSON(data []byte) error + func (r MessageSendResponse) RawJSON() string + type MessageSendStatus = shared.MessageSendStatus + type MessageService struct + Options []option.RequestOption + func NewMessageService(opts ...option.RequestOption) (r MessageService) + func (r *MessageService) Delete(ctx context.Context, messageID string, params MessageDeleteParams, ...) (err error) + func (r *MessageService) Get(ctx context.Context, messageID string, query MessageGetParams, ...) (res *shared.Message, err error) + func (r *MessageService) List(ctx context.Context, chatID string, query MessageListParams, ...) (res *pagination.CursorNoLimit[shared.Message], err error) + func (r *MessageService) ListAutoPaging(ctx context.Context, chatID string, query MessageListParams, ...) *pagination.CursorNoLimitAutoPager[shared.Message] + func (r *MessageService) Search(ctx context.Context, query MessageSearchParams, opts ...option.RequestOption) (res *pagination.CursorSearch[shared.Message], err error) + func (r *MessageService) SearchAutoPaging(ctx context.Context, query MessageSearchParams, opts ...option.RequestOption) *pagination.CursorSearchAutoPager[shared.Message] + func (r *MessageService) Send(ctx context.Context, chatID string, body MessageSendParams, ...) (res *MessageSendResponse, err error) + func (r *MessageService) Update(ctx context.Context, messageID string, params MessageUpdateParams, ...) (res *MessageUpdateResponse, err error) + type MessageType = shared.MessageType + type MessageUpdateParams struct + ChatID string + Text string + func (r *MessageUpdateParams) UnmarshalJSON(data []byte) error + func (r MessageUpdateParams) MarshalJSON() (data []byte, err error) + type MessageUpdateResponse struct + JSON struct{ ... } + MessageID string + Success bool + func (r *MessageUpdateResponse) UnmarshalJSON(data []byte) error + func (r MessageUpdateResponse) RawJSON() string + type Reaction = shared.Reaction + type SearchParams struct + Query string + func (r SearchParams) URLQuery() (v url.Values, err error) + type SearchResponse struct + JSON struct{ ... } + Results SearchResponseResults + func (r *SearchResponse) UnmarshalJSON(data []byte) error + func (r SearchResponse) RawJSON() string + type SearchResponseResults struct + Chats []Chat + InGroups []Chat + JSON struct{ ... } + Messages SearchResponseResultsMessages + func (r *SearchResponseResults) UnmarshalJSON(data []byte) error + func (r SearchResponseResults) RawJSON() string + type SearchResponseResultsMessages struct + Chats map[string]Chat + HasMore bool + Items []shared.Message + JSON struct{ ... } + NewestCursor string + OldestCursor string + func (r *SearchResponseResultsMessages) UnmarshalJSON(data []byte) error + func (r SearchResponseResultsMessages) RawJSON() string + type User = shared.User Other modules containing this package github.com/beeper/desktop-api-go