Skip to content

Type of Chat & ChatFullInfo #433

@Eyre-S

Description

@Eyre-S

Why there are two different chat types which are exactly the same?

public class Chat implements Serializable {
private final static long serialVersionUID = 0L;
public enum Type {
@SerializedName("private") Private, group, supergroup, channel
}

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions