Documentation - v0.27.4
    Preparing search index...

    Function buyResaleGift

    • Parameters

      • client: ITelegramClient
      • params: { recipient: InputPeerLike; shouldDispatch?: true; slug: string; ton?: boolean }
        • 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>