Class TdApi.SearchPublicChat

  • Enclosing class:
    TdApi

    public static class TdApi.SearchPublicChat
    extends TdApi.Function
    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 Detail

      • username

        public String username
        Username to be resolved.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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.