From e597baf5334cd5b0251833f2fa4f75a370a640a6 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Sun, 19 Dec 2021 11:39:31 +0100 Subject: [PATCH] Add date in photos --- .../telegram/telegrambots/meta/api/objects/PhotoSize.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/PhotoSize.java b/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/PhotoSize.java index 3c2ad13f..3b8fd431 100644 --- a/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/PhotoSize.java +++ b/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/PhotoSize.java @@ -29,6 +29,8 @@ public class PhotoSize implements BotApiObject { private static final String FILESIZE_FIELD = "file_size"; private static final String FILEPATH_FIELD = "file_path"; + private static final String DATE_FIELD = "date"; + @JsonProperty(FILEID_FIELD) private String fileId; ///< Identifier for this file, which can be used to download or reuse the file /** @@ -45,4 +47,7 @@ public class PhotoSize implements BotApiObject { private Integer fileSize; ///< Optional. File size @JsonProperty(FILEPATH_FIELD) private String filePath; ///< Undocumented field. Optional. Can contain the path to download the file directly without calling to getFile + + @JsonProperty(DATE_FIELD) + private Integer date; ///< Extra. Optional. }