Class TdApi.SearchPublicChat

Enclosing class:
TdApi

public static class TdApi.SearchPublicChat extends TdApi.Function<TdApi.Chat>
Searches a public chat by its username. Currently, only private chats, supergroups and channels can be public. Returns the chat if found; otherwise, an error is returned.

Returns Chat

  • Field Details

    • username

      public String username
      Username to be resolved.
    • CONSTRUCTOR

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

    • SearchPublicChat

      public SearchPublicChat()
      Default constructor for a function, which searches a public chat by its username. Currently, only private chats, supergroups and channels can be public. Returns the chat if found; otherwise, an error is returned.

      Returns Chat

    • SearchPublicChat

      public SearchPublicChat(String username)
      Creates a function, which searches a public chat by its username. Currently, only private chats, supergroups and channels can be public. Returns the chat if found; otherwise, an error is returned.

      Returns Chat

      Parameters:
      username - Username to be resolved.
  • 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