-
-
Notifications
You must be signed in to change notification settings - Fork 386
Open
Description
Why there are two different chat types which are exactly the same?
java-telegram-bot-api/library/src/main/java/com/pengrad/telegrambot/model/Chat.java
Lines 12 to 17 in c607c79
| public class Chat implements Serializable { | |
| private final static long serialVersionUID = 0L; | |
| public enum Type { | |
| @SerializedName("private") Private, group, supergroup, channel | |
| } |
java-telegram-bot-api/library/src/main/java/com/pengrad/telegrambot/model/ChatFullInfo.java
Lines 17 to 22 in c607c79
| public class ChatFullInfo implements Serializable { | |
| private final static long serialVersionUID = 0L; | |
| public enum Type { | |
| @SerializedName("private") Private, group, supergroup, channel | |
| } |
This makes comparing between chat types with different sources very hard.
Also, ChatFullInfo has all the members defined in Chat. Can we make ChatFullInfo somehow extends Chat, so that a method that receives Chat can also receive a ChatFullInfo without changes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels