Package com.cadiducho.telegrambotapi
Class Chat
- java.lang.Object
-
- com.cadiducho.telegrambotapi.Chat
-
public class Chat extends Object
Represents a chat. This might be a chat with aUser
or a GroupChat SeeChat.ChatType
by Chat#getChatType()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Chat.ChatType
-
Constructor Summary
Constructors Constructor Description Chat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description User
asUser()
Returns this chat as aUser
.Chat.ChatType
getChatType()
boolean
isGroupChat()
boolean
isUser()
-
-
-
Method Detail
-
getChatType
public Chat.ChatType getChatType()
-
isUser
public boolean isUser()
- Returns:
- Whether this is a chat with a
User
-
isGroupChat
public boolean isGroupChat()
- Returns:
- Whether this is a GroupChat
-
-