pl-api
    Preparing search index...

    Type Alias ChatMessage

    ChatMessage: {
        account_id: string;
        attachment:
            | {
                blurhash: string
                | null;
                description: string;
                id: string;
                meta: {
                    focus?: { x: number; y: number };
                    original?: {
                        aspect: number | null;
                        height: number;
                        size: string | null;
                        width: number;
                    };
                    small?: {
                        aspect: number
                        | null;
                        height: number;
                        size: string | null;
                        width: number;
                    };
                };
                mime_type: string
                | null;
                preview_url: string;
                remote_url: string | null;
                type: "image";
                url: string;
            }
            | {
                blurhash: string
                | null;
                description: string;
                id: string;
                meta: {
                    duration?: number;
                    original?: {
                        aspect: number | null;
                        duration: number | null;
                        frame_rate: string | null;
                        height: number;
                        size: string | null;
                        width: number;
                    };
                    small?: {
                        aspect: number
                        | null;
                        height: number;
                        size: string | null;
                        width: number;
                    };
                };
                mime_type: string
                | null;
                preview_url: string;
                remote_url: string | null;
                type: "video";
                url: string;
            }
            | {
                blurhash: string
                | null;
                description: string;
                id: string;
                meta: {
                    duration?: number;
                    focus?: { x: number; y: number };
                    original?: {
                        aspect: number | null;
                        height: number;
                        size: string | null;
                        width: number;
                    };
                };
                mime_type: string
                | null;
                preview_url: string;
                remote_url: string | null;
                type: "gifv";
                url: string;
            }
            | {
                blurhash: string
                | null;
                description: string;
                id: string;
                meta: {
                    colors?: {
                        accent?: string;
                        background?: string;
                        duration?: number;
                        foreground?: string;
                    };
                    duration?: number;
                    original?: { bitrate?: number; duration?: number };
                };
                mime_type: string
                | null;
                preview_url: string;
                remote_url: string | null;
                type: "audio";
                url: string;
            }
            | {
                blurhash: string
                | null;
                description: string;
                id: string;
                mime_type: string | null;
                preview_url: string;
                remote_url: string | null;
                type: "unknown";
                url: string;
            }
            | null;
        card: | {
            author_name: string;
            author_url: string;
            authors: { account: Account
            | null; name: string; url: string }[];
            blurhash: string | null;
            description: string;
            embed_url: string;
            height: number;
            html: string;
            image: string | null;
            image_description: string;
            provider_name: string;
            provider_url: string;
            title: string;
            type: "link" | "video" | "photo" | "rich";
            url: string;
            width: number;
        }
        | null;
        chat_id: string;
        content: string;
        created_at: string;
        emojis: {
            category: string
            | null;
            shortcode: string;
            static_url: string;
            url: string;
            visible_in_picker: boolean;
        }[];
        id: string;
        unread: boolean;
    }

    Type Declaration

    • account_id: string
    • attachment:
          | {
              blurhash: string
              | null;
              description: string;
              id: string;
              meta: {
                  focus?: { x: number; y: number };
                  original?: {
                      aspect: number | null;
                      height: number;
                      size: string | null;
                      width: number;
                  };
                  small?: {
                      aspect: number
                      | null;
                      height: number;
                      size: string | null;
                      width: number;
                  };
              };
              mime_type: string
              | null;
              preview_url: string;
              remote_url: string | null;
              type: "image";
              url: string;
          }
          | {
              blurhash: string
              | null;
              description: string;
              id: string;
              meta: {
                  duration?: number;
                  original?: {
                      aspect: number | null;
                      duration: number | null;
                      frame_rate: string | null;
                      height: number;
                      size: string | null;
                      width: number;
                  };
                  small?: {
                      aspect: number
                      | null;
                      height: number;
                      size: string | null;
                      width: number;
                  };
              };
              mime_type: string
              | null;
              preview_url: string;
              remote_url: string | null;
              type: "video";
              url: string;
          }
          | {
              blurhash: string
              | null;
              description: string;
              id: string;
              meta: {
                  duration?: number;
                  focus?: { x: number; y: number };
                  original?: {
                      aspect: number | null;
                      height: number;
                      size: string | null;
                      width: number;
                  };
              };
              mime_type: string
              | null;
              preview_url: string;
              remote_url: string | null;
              type: "gifv";
              url: string;
          }
          | {
              blurhash: string
              | null;
              description: string;
              id: string;
              meta: {
                  colors?: {
                      accent?: string;
                      background?: string;
                      duration?: number;
                      foreground?: string;
                  };
                  duration?: number;
                  original?: { bitrate?: number; duration?: number };
              };
              mime_type: string
              | null;
              preview_url: string;
              remote_url: string | null;
              type: "audio";
              url: string;
          }
          | {
              blurhash: string
              | null;
              description: string;
              id: string;
              mime_type: string | null;
              preview_url: string;
              remote_url: string | null;
              type: "unknown";
              url: string;
          }
          | null
    • card:
          | {
              author_name: string;
              author_url: string;
              authors: { account: Account
              | null; name: string; url: string }[];
              blurhash: string | null;
              description: string;
              embed_url: string;
              height: number;
              html: string;
              image: string | null;
              image_description: string;
              provider_name: string;
              provider_url: string;
              title: string;
              type: "link" | "video" | "photo" | "rich";
              url: string;
              width: number;
          }
          | null
    • chat_id: string
    • content: string
    • created_at: string
    • emojis: {
          category: string | null;
          shortcode: string;
          static_url: string;
          url: string;
          visible_in_picker: boolean;
      }[]
    • id: string
    • unread: boolean