• Get Telegram Stars transactions for a given peer.

    You can either pass self to get your own transactions, or a chat/bot ID to get transactions of that peer.

    Parameters

    • client: ITelegramClient
    • peerId: InputPeerLike

      Peer ID

    • Optionalparams: {
          direction?: "incoming" | "outgoing";
          limit?: number;
          offset?: string;
          sort?: "asc" | "desc";
          subscriptionId?: string;
      }

      Additional parameters

      • Optionaldirection?: "incoming" | "outgoing"

        If passed, only transactions of this direction will be returned

      • Optionallimit?: number

        Pagination limit

        100
        
      • Optionaloffset?: string

        Pagination offset

      • Optionalsort?: "asc" | "desc"

        Direction to sort transactions date by (default: desc)

      • OptionalsubscriptionId?: string

        If passed, will only return transactions related to this subscription ID

    Returns Promise<StarsStatus>