pl-api
    Preparing search index...

    Function pollsCategory

    • Parameters

      Returns {
          getPoll: (
              pollId: string,
          ) => Promise<
              {
                  emojis: {
                      category: string
                      | null;
                      shortcode: string;
                      static_url: string;
                      url: string;
                      visible_in_picker: boolean;
                  }[];
                  expired: boolean;
                  expires_at: string
                  | null;
                  id: string;
                  multiple: boolean;
                  non_anonymous: boolean;
                  options: {
                      title: string;
                      title_map: { [key: string]: string } | null;
                      votes_count: number;
                  }[];
                  own_votes: number[]
                  | null;
                  voted: boolean;
                  voters_count: number;
                  votes_count: number;
              },
          >;
          vote: (
              pollId: string,
              choices: number[],
          ) => Promise<
              {
                  emojis: {
                      category: string
                      | null;
                      shortcode: string;
                      static_url: string;
                      url: string;
                      visible_in_picker: boolean;
                  }[];
                  expired: boolean;
                  expires_at: string
                  | null;
                  id: string;
                  multiple: boolean;
                  non_anonymous: boolean;
                  options: {
                      title: string;
                      title_map: { [key: string]: string } | null;
                      votes_count: number;
                  }[];
                  own_votes: number[]
                  | null;
                  voted: boolean;
                  voters_count: number;
                  votes_count: number;
              },
          >;
      }

      • getPoll: (
            pollId: string,
        ) => Promise<
            {
                emojis: {
                    category: string
                    | null;
                    shortcode: string;
                    static_url: string;
                    url: string;
                    visible_in_picker: boolean;
                }[];
                expired: boolean;
                expires_at: string
                | null;
                id: string;
                multiple: boolean;
                non_anonymous: boolean;
                options: {
                    title: string;
                    title_map: { [key: string]: string } | null;
                    votes_count: number;
                }[];
                own_votes: number[]
                | null;
                voted: boolean;
                voters_count: number;
                votes_count: number;
            },
        >

        View a poll View a poll attached to a status.

      • vote: (
            pollId: string,
            choices: number[],
        ) => Promise<
            {
                emojis: {
                    category: string
                    | null;
                    shortcode: string;
                    static_url: string;
                    url: string;
                    visible_in_picker: boolean;
                }[];
                expired: boolean;
                expires_at: string
                | null;
                id: string;
                multiple: boolean;
                non_anonymous: boolean;
                options: {
                    title: string;
                    title_map: { [key: string]: string } | null;
                    votes_count: number;
                }[];
                own_votes: number[]
                | null;
                voted: boolean;
                voters_count: number;
                votes_count: number;
            },
        >

        Vote on a poll Vote on a poll attached to a status.