Package org.drinkless.tdlib
Class TdApi.SearchPublicChat
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.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 Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.StringusernameUsername to be resolved.
-
Constructor Summary
Constructors Constructor Description SearchPublicChat()Default constructor for a function, which searches a public chat by its username.SearchPublicChat(String username)Creates a function, which searches a public chat by its username.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-