mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-26 12:08:43 +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
|
## 0.21.0 TelegramBotAPI 4.5
|
||||||
|
|
||||||
|
* Now `ChatPhoto` have two additional fields: `smallFileUniqueId` and `bigFileUniqueId`
|
||||||
* Now any administrator object instance have `customTitle` nullable field
|
* Now any administrator object instance have `customTitle` nullable field
|
||||||
* Added the new request `SetChatAdministratorCustomTitle` to manage the custom titles of administrators promoted by the
|
* Added the new request `SetChatAdministratorCustomTitle` to manage the custom titles of administrators promoted by the
|
||||||
bot.
|
bot.
|
||||||
|
@ -5,8 +5,12 @@ import kotlinx.serialization.Serializable
|
|||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class ChatPhoto(
|
data class ChatPhoto(
|
||||||
@SerialName("small_file_id")
|
@SerialName(smallFileIdField)
|
||||||
val smallFileId: String,
|
val smallFileId: String,
|
||||||
@SerialName("big_file_id")
|
@SerialName(bigFileIdField)
|
||||||
val bigFileId: String
|
val bigFileId: String,
|
||||||
|
@SerialName(smallFileUniqueIdField)
|
||||||
|
val smallFileUniqueId: FileUniqueId,
|
||||||
|
@SerialName(bigFileUniqueIdField)
|
||||||
|
val bigFileUniqueId: FileUniqueId
|
||||||
)
|
)
|
||||||
|
@ -18,6 +18,7 @@ typealias StartParameter = String
|
|||||||
typealias InlineMessageIdentifier = String
|
typealias InlineMessageIdentifier = String
|
||||||
typealias PollIdentifier = String
|
typealias PollIdentifier = String
|
||||||
typealias StickerSetName = String
|
typealias StickerSetName = String
|
||||||
|
typealias FileUniqueId = String
|
||||||
|
|
||||||
val callbackQueryAnswerLength = 0 until 200
|
val callbackQueryAnswerLength = 0 until 200
|
||||||
val captionLength = 0 until 1024
|
val captionLength = 0 until 1024
|
||||||
@ -221,6 +222,12 @@ const val yShiftField = "y_shift"
|
|||||||
const val scaleField = "scale"
|
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 currencyField = "currency"
|
||||||
const val startParameterField = "start_parameter"
|
const val startParameterField = "start_parameter"
|
||||||
const val totalAmountField = "total_amount"
|
const val totalAmountField = "total_amount"
|
||||||
|
Loading…
Reference in New Issue
Block a user