Class TdApi.ConnectAffiliateProgram

Enclosing class:
TdApi

public static class TdApi.ConnectAffiliateProgram extends TdApi.Function<TdApi.ConnectedAffiliateProgram>
Connects an affiliate program to the given affiliate. Returns information about the connected affiliate program.

Returns ConnectedAffiliateProgram

  • Field Details

    • affiliate

      public TdApi.AffiliateType affiliate
      The affiliate to which the affiliate program will be connected.
    • botUserId

      public long botUserId
      Identifier of the bot, which affiliate program is connected.
    • CONSTRUCTOR

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

    • ConnectAffiliateProgram

      public ConnectAffiliateProgram()
      Default constructor for a function, which connects an affiliate program to the given affiliate. Returns information about the connected affiliate program.

      Returns ConnectedAffiliateProgram

    • ConnectAffiliateProgram

      public ConnectAffiliateProgram(TdApi.AffiliateType affiliate, long botUserId)
      Creates a function, which connects an affiliate program to the given affiliate. Returns information about the connected affiliate program.

      Returns ConnectedAffiliateProgram

      Parameters:
      affiliate - The affiliate to which the affiliate program will be connected.
      botUserId - Identifier of the bot, which affiliate program is connected.
  • 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