mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
now ChatPhoto have two additional fields: smallFileUniqueId and bigFileUniqueId
This commit is contained in:
parent
5ee472305c
commit
198e15a937
@ -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.
|
||||
|
@ -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
|
||||
)
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user