diff --git a/README.md b/README.md index fe3ed882..91079ff6 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ I recommend using getUpdates methods. ## Usage -Just import add the library to your project using [Maven, Gradly, ...](https://jitpack.io/#rubenlagus/TelegramBots/v1.1) or download the jar(including all dependencies) from [here](https://github.com/rubenlagus/TelegramBots/releases/tag/v1.1) +Just import add the library to your project using [Maven, Gradly, ...](https://jitpack.io/#rubenlagus/TelegramBots/v2.0.2) or download the jar(including all dependencies) from [here](https://github.com/rubenlagus/TelegramBots/releases/tag/v2.0.2) In order to use Long Polling mode, just create your own bot extending `org.telegram.telegrambots.bots.TelegramLongPollingBot`. diff --git a/src/main/java/org/telegram/telegrambots/api/objects/Sticker.java b/src/main/java/org/telegram/telegrambots/api/objects/Sticker.java index 400b1cce..38f2987c 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/Sticker.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/Sticker.java @@ -50,6 +50,26 @@ public class Sticker implements IBotApiObject { this.fileSize = jsonObject.getInt(FILESIZE_FIELD); } } + + public String getFileId() { + return fileId; + } + + public Integer getWidth() { + return width; + } + + public Integer getHeight() { + return height; + } + + public String getThumb() { + return thumb; + } + + public Integer getFileSize() { + return fileSize; + } @Override public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException {