Class TdApi.SearchChatAffiliateProgram

Enclosing class:
TdApi

public static class TdApi.SearchChatAffiliateProgram extends TdApi.Function<TdApi.Chat>
Searches a chat with an affiliate program. Returns the chat if found and the program is active.

Returns Chat

  • Field Details

    • username

      public String username
      Username of the chat.
    • referrer

      public String referrer
      The referrer from an internalLinkTypeChatAffiliateProgram link.
    • CONSTRUCTOR

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

    • SearchChatAffiliateProgram

      public SearchChatAffiliateProgram()
      Default constructor for a function, which searches a chat with an affiliate program. Returns the chat if found and the program is active.

      Returns Chat

    • SearchChatAffiliateProgram

      public SearchChatAffiliateProgram(String username, String referrer)
      Creates a function, which searches a chat with an affiliate program. Returns the chat if found and the program is active.

      Returns Chat

      Parameters:
      username - Username of the chat.
      referrer - The referrer from an internalLinkTypeChatAffiliateProgram link.
  • 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