Modularized Telegram API, fixed #12
This commit is contained in:
39
src/main/java/de/Linus122/TelegramComponents/Chat.java
Executable file → Normal file
39
src/main/java/de/Linus122/TelegramComponents/Chat.java
Executable file → Normal file
@@ -1,7 +1,32 @@
|
||||
package de.Linus122.TelegramComponents;
|
||||
|
||||
public class Chat {
|
||||
public String text;
|
||||
public int chat_id;
|
||||
public String parse_mode;
|
||||
}
|
||||
package de.Linus122.TelegramComponents;
|
||||
|
||||
public class Chat {
|
||||
private int id;
|
||||
private String type;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/**
|
||||
* isPrivate
|
||||
* @return true for private, false for group chats
|
||||
*/
|
||||
public boolean isPrivate(){
|
||||
return type.equals("private");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user