• Parameters

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

    Returns Promise<Message | null>