Add date in photos

This commit is contained in:
Andrea Cavalli 2021-12-19 11:39:31 +01:00
parent 0010c00a0b
commit e597baf533

View File

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