Documentation - v0.27.4
    Preparing search index...

    Function sendStarGiftOffer

    • Create a purchase offer for a unique star gift

      Parameters

      • client: ITelegramClient
      • params: {
            allowPaidMessages?: Long;
            duration: number;
            peerId: InputPeerLike;
            price: InputStarsAmount;
            shouldDispatch?: true;
            slug: string;
        }
        • OptionalallowPaidMessages?: Long

          When the recipient has paid messages enabled, the maximum number of stars that you are willing to spend

        • duration: number

          Duration of the offer in seconds

        • peerId: InputPeerLike

          ID of the peer to send the offer to

        • price: InputStarsAmount

          Amount of stars to offer

        • OptionalshouldDispatch?: true

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

        • slug: string

          Slug of the star gift to create an offer for

      Returns Promise<Message>