Documentation - v0.27.4
    Preparing search index...

    Function resolveStarGiftOffer

    • Accept or decline a purchase offer for a star gift

      Parameters

      • client: ITelegramClient
      • options: { action: "decline" | "accept"; message: number; shouldDispatch?: true }
        • action: "decline" | "accept"

          Whether to accept or decline the offer

        • message: number

          ID of the message containing the offer

        • OptionalshouldDispatch?: true

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

      Returns Promise<Message>

      The generated service message