1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-23 00:57:13 +00:00

now ChatPhoto have two additional fields: smallFileUniqueId and bigFileUniqueId

This commit is contained in:
InsanusMokrassar 2020-01-01 22:18:51 +06:00
parent 5ee472305c
commit 198e15a937
3 changed files with 15 additions and 3 deletions

View File

@ -2,6 +2,7 @@
## 0.21.0 TelegramBotAPI 4.5
* Now `ChatPhoto` have two additional fields: `smallFileUniqueId` and `bigFileUniqueId`
* Now any administrator object instance have `customTitle` nullable field
* Added the new request `SetChatAdministratorCustomTitle` to manage the custom titles of administrators promoted by the
bot.

View File

@ -5,8 +5,12 @@ import kotlinx.serialization.Serializable
@Serializable
data class ChatPhoto(
@SerialName("small_file_id")
@SerialName(smallFileIdField)
val smallFileId: String,
@SerialName("big_file_id")
val bigFileId: String
@SerialName(bigFileIdField)
val bigFileId: String,
@SerialName(smallFileUniqueIdField)
val smallFileUniqueId: FileUniqueId,
@SerialName(bigFileUniqueIdField)
val bigFileUniqueId: FileUniqueId
)

View File

@ -18,6 +18,7 @@ typealias StartParameter = String
typealias InlineMessageIdentifier = String
typealias PollIdentifier = String
typealias StickerSetName = String
typealias FileUniqueId = String
val callbackQueryAnswerLength = 0 until 200
val captionLength = 0 until 1024
@ -221,6 +222,12 @@ const val yShiftField = "y_shift"
const val scaleField = "scale"
const val smallFileIdField = "small_file_id"
const val bigFileIdField = "big_file_id"
const val smallFileUniqueIdField = "small_file_unique_id"
const val bigFileUniqueIdField = "big_file_unique_id"
const val currencyField = "currency"
const val startParameterField = "start_parameter"
const val totalAmountField = "total_amount"