Documentation
¶
Index ¶
- func ArchiveChat(ctx context.Context, client *api.Client, chatID string, archived bool) error
- func ClearReminder(ctx context.Context, client *api.Client, chatID string) error
- func CreateChat(ctx context.Context, client *api.Client, body api.CreateChatRequest) (api.CreateChatResponse, error)
- func DeleteMessage(ctx context.Context, client *api.Client, chatID, messageID string) error
- func DownloadAsset(ctx context.Context, client *api.Client, body api.DownloadAssetRequest) (api.DownloadAssetResponse, error)
- func EditMessage(ctx context.Context, client *api.Client, chatID, messageID string, ...) (api.EditMessageResponse, error)
- func FetchAllChats(ctx context.Context, client *api.Client, params url.Values, direction string, ...) ([]api.Chat, error)
- func Focus(ctx context.Context, client *api.Client, body api.FocusRequest) error
- func GetChat(ctx context.Context, client *api.Client, chatID string) (api.Chat, error)
- func ListAccounts(ctx context.Context, client *api.Client) ([]api.Account, error)
- func ListChats(ctx context.Context, client *api.Client, params url.Values) (api.ListChatsResponse, error)
- func ListMessages(ctx context.Context, client *api.Client, chatID string, params url.Values) (api.ListMessagesResponse, error)
- func ListMessagesByCursor(ctx context.Context, client *api.Client, chatID, cursor, direction string) (api.ListMessagesResponse, error)
- func MarkChatRead(ctx context.Context, client *api.Client, chatID string) error
- func NextChatCursor(result api.ListChatsResponse, direction string) string
- func ReactToMessage(ctx context.Context, client *api.Client, chatID, messageID string, ...) error
- func SearchAccountContacts(ctx context.Context, client *api.Client, accountID, query string) (api.SearchContactsResponse, error)
- func SearchChats(ctx context.Context, client *api.Client, params url.Values) (api.ListChatsResponse, error)
- func SearchMessages(ctx context.Context, client *api.Client, params url.Values) (api.SearchMessagesResponse, error)
- func SendMessage(ctx context.Context, client *api.Client, chatID string, ...) (api.SendMessageResponse, error)
- func SetReminder(ctx context.Context, client *api.Client, chatID string, ...) error
- func TryGetChat(ctx context.Context, client *api.Client, chatID string) (api.Chat, error)
- func UploadAsset(ctx context.Context, client *api.Client, fileName string, file io.Reader, ...) (api.UploadAssetResponse, error)
- func UploadAssetBase64(ctx context.Context, client *api.Client, body api.UploadAssetBase64Request) (api.UploadAssetResponse, error)
- func ValidateToken(ctx context.Context, baseURL, token string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiveChat ¶
func ClearReminder ¶
func CreateChat ¶ added in v0.2.14
func CreateChat(ctx context.Context, client *api.Client, body api.CreateChatRequest) (api.CreateChatResponse, error)
func DeleteMessage ¶
func DownloadAsset ¶ added in v0.2.14
func DownloadAsset(ctx context.Context, client *api.Client, body api.DownloadAssetRequest) (api.DownloadAssetResponse, error)
func EditMessage ¶ added in v0.2.14
func EditMessage(ctx context.Context, client *api.Client, chatID, messageID string, body api.EditMessageRequest) (api.EditMessageResponse, error)
func FetchAllChats ¶
func ListAccounts ¶
func ListMessages ¶
func ListMessagesByCursor ¶
func NextChatCursor ¶
func NextChatCursor(result api.ListChatsResponse, direction string) string
func ReactToMessage ¶
func SearchAccountContacts ¶ added in v0.2.14
func SearchChats ¶
func SearchMessages ¶
func SendMessage ¶
func SendMessage(ctx context.Context, client *api.Client, chatID string, body api.SendMessageRequest) (api.SendMessageResponse, error)
func SetReminder ¶
func TryGetChat ¶
TryGetChat fetches chat details, returning an empty chat if not found (404). Server errors (5xx) are propagated as errors. This is useful for optional context where chat info is non-critical but server issues should be reported.
func UploadAsset ¶ added in v0.2.14
func UploadAssetBase64 ¶ added in v0.2.14
func UploadAssetBase64(ctx context.Context, client *api.Client, body api.UploadAssetBase64Request) (api.UploadAssetResponse, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.