Class TdApi.ProcessGiftPurchaseOffer

Enclosing class:
TdApi

public static class TdApi.ProcessGiftPurchaseOffer extends TdApi.Function<TdApi.Ok>
Handles a pending gift purchase offer.

Returns Ok

  • Field Details

    • messageId

      public long messageId
      Identifier of the message with the gift purchase offer.
    • accept

      public boolean accept
      Pass true to accept the request; pass false to reject it.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • ProcessGiftPurchaseOffer

      public ProcessGiftPurchaseOffer()
      Default constructor for a function, which handles a pending gift purchase offer.

      Returns Ok

    • ProcessGiftPurchaseOffer

      public ProcessGiftPurchaseOffer(long messageId, boolean accept)
      Creates a function, which handles a pending gift purchase offer.

      Returns Ok

      Parameters:
      messageId - Identifier of the message with the gift purchase offer.
      accept - Pass true to accept the request; pass false to reject it.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Function<TdApi.Ok>
      Returns:
      this.CONSTRUCTOR