Merge branch 'michaelarlt-patch-1' into dev

This commit is contained in:
Rubenlagus 2016-04-17 16:37:41 +02:00
commit 3c96f765c3
2 changed files with 21 additions and 1 deletions

View File

@ -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`.

View File

@ -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 {