Module tdlight.api

Class TdApi.SearchPublicChat

Enclosing class:
TdApi

public static final 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
      See Also:
  • Constructor Details

    • SearchPublicChat

      public SearchPublicChat()
      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)
      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 - String Username to be resolved.
    • SearchPublicChat

      public SearchPublicChat(DataInput input) throws IOException
      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
      Throws:
      IOException
  • Method Details