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 Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    Pass true to accept the request; pass false to reject it.
    static final int
    Identifier uniquely determining type of the object.
    long
    Identifier of the message with the gift purchase offer.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which handles a pending gift purchase offer.
    ProcessGiftPurchaseOffer(long messageId, boolean accept)
    Creates a function, which handles a pending gift purchase offer.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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.Object
      Returns:
      this.CONSTRUCTOR