Documentation - v0.32.0
    Preparing search index...

    Function buyResaleGift

    • Parameters

      • client: ITelegramClient
      • params: {
            anonymous?: boolean;
            message?: InputText;
            recipient: InputPeerLike;
            shouldDispatch?: true;
            slug: string;
            ton?: boolean;
        }
        • Optionalanonymous?: boolean

          Whether to buy the gift anonymously (i.e. if the recipient chooses to display the gift on their profile, your name won't be visible)

          true

        • Optionalmessage?: InputText

          Message to send along with the gift

        • recipient: InputPeerLike

          ID of the user to buy the gift for

        • OptionalshouldDispatch?: true

          Whether to dispatch the new message event to the client's update handler.

        • slug: string

          Slug of the star gift to buy

        • Optionalton?: boolean

          Whether to use TON currency for payment

      Returns Promise<Message | null>