1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-25 19:48:43 +00:00

update texts lengths restrictions

This commit is contained in:
InsanusMokrassar 2019-01-29 08:18:07 +08:00
parent f80fb33402
commit eab147a38f
2 changed files with 11 additions and 9 deletions

View File

@ -12,6 +12,8 @@
### 0.9.1 ### 0.9.1
* Updated built-in lengths restrictions
### 0.8.5 ### 0.8.5
* Add extension `String#toMarkdown` * Add extension `String#toMarkdown`

View File

@ -16,17 +16,17 @@ typealias ShippingOptionIdentifier = String
typealias StartParameter = String typealias StartParameter = String
typealias InlineMessageIdentifier = String typealias InlineMessageIdentifier = String
val callbackQueryAnswerLength = 0 .. 200 val callbackQueryAnswerLength = 0 until 200
val captionLength = 0 .. 1024 val captionLength = 0 until 1024
val textLength = 0 .. 4096 val textLength = 0 until 4096
val userProfilePhotosRequestLimit = 0 .. 100 val userProfilePhotosRequestLimit = 0 .. 100
val chatTitleLength = 1 .. 255 val chatTitleLength = 1 until 255
val chatDescriptionLength = 0 .. 255 val chatDescriptionLength = 0 until 256
val inlineResultQueryIdLingth = 1 .. 64 val inlineResultQueryIdLingth = 1 until 64
val invoiceTitleLimit = 1 .. 32 val invoiceTitleLimit = 1 until 32
val invoiceDescriptionLimit = 1 .. 255 val invoiceDescriptionLimit = 1 until 256
val invoicePayloadBytesLimit = 1 .. 128 val invoicePayloadBytesLimit = 1 until 128
const val chatIdField = "chat_id" const val chatIdField = "chat_id"
const val messageIdField = "message_id" const val messageIdField = "message_id"