public class Chat
extends java.lang.Object
| Constructor and Description |
|---|
Chat() |
| Modifier and Type | Method and Description |
|---|---|
User |
asUser()
Returns this chat as a
User. |
int |
getId() |
boolean |
isChannelChat() |
boolean |
isGroupChat() |
boolean |
isSuperGroupChat() |
boolean |
isUser() |
java.lang.String |
toString() |
public boolean isUser()
Userpublic boolean isGroupChat()
public boolean isSuperGroupChat()
public boolean isChannelChat()
public int getId()
public User asUser()
User.
Before invoking, check whether this chat is actually a chat with a userUser objectpublic java.lang.String toString()
toString in class java.lang.Object