Modularized Telegram API, fixed #12

This commit is contained in:
mastercake10
2018-03-05 08:37:48 +01:00
parent 7bbcf58caa
commit 06923bec46
9 changed files with 228 additions and 40 deletions

39
src/main/java/de/Linus122/TelegramComponents/Chat.java Executable file → Normal file
View 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");
}
}