Class TdApi.SetChatAffiliateProgram

Enclosing class:
TdApi

public static class TdApi.SetChatAffiliateProgram extends TdApi.Function<TdApi.Ok>
Changes affiliate program for a bot.

Returns Ok

  • Field Details

    • chatId

      public long chatId
      Identifier of the chat with an owned bot for which affiliate program is changed.
    • parameters

      Parameters of the affiliate program; pass null to close the currently active program. If there is an active program, then commission and program duration can only be increased. If the active program is scheduled to be closed, then it can't be changed anymore.
    • CONSTRUCTOR

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

    • SetChatAffiliateProgram

      public SetChatAffiliateProgram()
      Default constructor for a function, which changes affiliate program for a bot.

      Returns Ok

    • SetChatAffiliateProgram

      public SetChatAffiliateProgram(long chatId, TdApi.AffiliateProgramParameters parameters)
      Creates a function, which changes affiliate program for a bot.

      Returns Ok

      Parameters:
      chatId - Identifier of the chat with an owned bot for which affiliate program is changed.
      parameters - Parameters of the affiliate program; pass null to close the currently active program. If there is an active program, then commission and program duration can only be increased. If the active program is scheduled to be closed, then it can't be changed anymore.
  • 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