Class TdApi.SendCustomRequest

Enclosing class:
TdApi

public static class TdApi.SendCustomRequest extends TdApi.Function<TdApi.CustomRequestResult>
Sends a custom request; for bots only.

Returns CustomRequestResult

  • Field Details

    • method

      public String method
      The method name.
    • parameters

      public String parameters
      JSON-serialized method parameters.
    • CONSTRUCTOR

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

    • SendCustomRequest

      public SendCustomRequest()
      Default constructor for a function, which sends a custom request; for bots only.

      Returns CustomRequestResult

    • SendCustomRequest

      public SendCustomRequest(String method, String parameters)
      Creates a function, which sends a custom request; for bots only.

      Returns CustomRequestResult

      Parameters:
      method - The method name.
      parameters - JSON-serialized method parameters.
  • 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