• Preparing search index...
  • The search index is not available
Documentation - v0.23.3
  • Documentation
  • @mtcute/deno
  • methods
  • getResaleOptions

Function getResaleOptions

  • getResaleOptions(
        client: ITelegramClient,
        params: {
            attributes?: InputStarGiftAttributeIds | TypeStarGiftAttributeId[];
            attributesHash?: Long;
            giftId: Long;
            limit?: number;
            offset?: string;
            sort?: "num" | "price";
        },
    ): Promise<
        ArrayPaginatedWithMeta<StarGiftUnique, string, ResaleStarGiftsMeta>,
    >
  • Get a list of star gifts up for resale

    Parameters

    • client: ITelegramClient
    • params: {
          attributes?: InputStarGiftAttributeIds | TypeStarGiftAttributeId[];
          attributesHash?: Long;
          giftId: Long;
          limit?: number;
          offset?: string;
          sort?: "num" | "price";
      }
      • Optionalattributes?: InputStarGiftAttributeIds | TypeStarGiftAttributeId[]

        Attributes to filter for

      • OptionalattributesHash?: Long

        Hash of the attributes field, as returned by the server in the first response

      • giftId: Long

        ID of the gift to get resale options for

      • Optionallimit?: number

        Limit for pagination

      • Optionaloffset?: string

        Offset for pagination

      • Optionalsort?: "num" | "price"

        Sorting attribute

        • price: Sort by price
        • num: Sort by its unique number

    Returns Promise<ArrayPaginatedWithMeta<StarGiftUnique, string, ResaleStarGiftsMeta>>

    • Defined in packages/core/src/highlevel/methods/premium/get-resale-star-gifts.ts:91

Settings

Member Visibility
Documentation - v0.23.3
  • Loading...

Generated using TypeDoc