From 2fb8cf40a5f1c5e3eb0685a4b640ba397738707b Mon Sep 17 00:00:00 2001 From: Ruben Bermudez Date: Tue, 12 Apr 2016 04:31:05 +0200 Subject: [PATCH 1/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fe3ed882..54294b15 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) or download the jar(including all dependencies) from [here](https://github.com/rubenlagus/TelegramBots/releases/tag/v2.0) In order to use Long Polling mode, just create your own bot extending `org.telegram.telegrambots.bots.TelegramLongPollingBot`. From 9c244b91be3a305640d7a82f37ffdcd14160a8c7 Mon Sep 17 00:00:00 2001 From: Ruben Bermudez Date: Tue, 12 Apr 2016 05:04:14 +0200 Subject: [PATCH 2/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 54294b15..456e0d1c 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/v2.0) or download the jar(including all dependencies) from [here](https://github.com/rubenlagus/TelegramBots/releases/tag/v2.0) +Just import add the library to your project using [Maven, Gradly, ...](https://jitpack.io/#rubenlagus/TelegramBots/v2.0.0) or download the jar(including all dependencies) from [here](https://github.com/rubenlagus/TelegramBots/releases/tag/v2.0.0) In order to use Long Polling mode, just create your own bot extending `org.telegram.telegrambots.bots.TelegramLongPollingBot`. From 3fd3da41ecccd2c8d087d1004f6ec27a97e9bf19 Mon Sep 17 00:00:00 2001 From: Ruben Bermudez Date: Tue, 12 Apr 2016 05:08:04 +0200 Subject: [PATCH 3/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 456e0d1c..54294b15 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/v2.0.0) or download the jar(including all dependencies) from [here](https://github.com/rubenlagus/TelegramBots/releases/tag/v2.0.0) +Just import add the library to your project using [Maven, Gradly, ...](https://jitpack.io/#rubenlagus/TelegramBots/v2.0) or download the jar(including all dependencies) from [here](https://github.com/rubenlagus/TelegramBots/releases/tag/v2.0) In order to use Long Polling mode, just create your own bot extending `org.telegram.telegrambots.bots.TelegramLongPollingBot`. From 118ced4c6a7ee5689a9e9b1c42e9d0e9ec188192 Mon Sep 17 00:00:00 2001 From: Ruben Bermudez Date: Tue, 12 Apr 2016 20:25:39 +0200 Subject: [PATCH 4/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 54294b15..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/v2.0) or download the jar(including all dependencies) from [here](https://github.com/rubenlagus/TelegramBots/releases/tag/v2.0) +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`. From 9275f91b0208be78f0b894a89dbb9a3c97adbcf7 Mon Sep 17 00:00:00 2001 From: Michael Arlt Date: Sun, 17 Apr 2016 15:33:41 +0200 Subject: [PATCH 5/6] adding missing values --- .../telegrambots/api/objects/Sticker.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) 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..7ac6b047 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 Integer getFileId() { + return fileId; + } + + public String getWidth() { + return width; + } + + public String getHeight() { + return height; + } + + public String getThumb() { + return thumb; + } + + public String getFileSize() { + return fileSize; + } @Override public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException { From 28c2f3336b8a4d41ae639b28fec4eacbd85dc419 Mon Sep 17 00:00:00 2001 From: Michael Arlt Date: Sun, 17 Apr 2016 15:41:36 +0200 Subject: [PATCH 6/6] fixed types integer and string sorry, did mess up --- .../org/telegram/telegrambots/api/objects/Sticker.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 7ac6b047..38f2987c 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/Sticker.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/Sticker.java @@ -51,15 +51,15 @@ public class Sticker implements IBotApiObject { } } - public Integer getFileId() { + public String getFileId() { return fileId; } - public String getWidth() { + public Integer getWidth() { return width; } - public String getHeight() { + public Integer getHeight() { return height; } @@ -67,7 +67,7 @@ public class Sticker implements IBotApiObject { return thumb; } - public String getFileSize() { + public Integer getFileSize() { return fileSize; }