@0x3639/intervals-icu
    Preparing search index...

    Class ChatService

    Service for chats and messages

    Index
    • Block (on = true) or unblock the other athlete in a private chat

      Parameters

      • chatId: number
      • on: boolean

      Returns Promise<Chat>

    • Delete a message. The API returns an untyped object.

      Parameters

      • chatId: number
      • messageId: number

      Returns Promise<Record<string, unknown>>

    • List chats (including groups) for the athlete, most recently active first

      Parameters

      • OptionalathleteId: string

      Returns Promise<Chat[]>

    • Group chats for the athlete, in name order

      Parameters

      • OptionalathleteId: string

      Returns Promise<Chat[]>

    • List messages in a chat

      Parameters

      • chatId: number
      • Optionaloptions: { limit?: number; sinceId?: number }

      Returns Promise<Message[]>

    • Mark a message as seen (update last seen message ID)

      Parameters

      • chatId: number
      • messageId: number

      Returns Promise<void>

    • Edit a message's content or answer (the only fields the API updates). Returns an untyped object.

      Parameters

      Returns Promise<Record<string, unknown>>