1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-25 03:28:44 +00:00

Merge pull request #713 from madhead/feature/user_chat_id_in_chat_join_request

Add support for `user_chat_id` field
This commit is contained in:
InsanusMokrassar 2023-02-05 18:34:36 +06:00 committed by GitHub
commit 6dbe5f024f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View File

@ -2,6 +2,10 @@
## 5.1.0
* `Core`:
* [Bot API 6.5](https://core.telegram.org/bots/api#february-3-2023) support
* Added the field `user_chat_id` to the class `ChatJoinRequest`.
## 5.0.2
* `Versions`:

View File

@ -375,6 +375,7 @@ const val latitudeField = "latitude"
const val longitudeField = "longitude"
const val headingField = "heading"
const val fromField = "from"
const val userChatIdField = "user_chat_id"
const val userField = "user"
const val dateField = "date"
const val chatField = "chat"

View File

@ -15,6 +15,8 @@ data class ChatJoinRequest(
val chat: PublicChat,
@SerialName(fromField)
override val from: User,
@SerialName(userChatIdField)
val userChatId: UserId,
@SerialName(dateField)
val date: TelegramDate,
@SerialName(inviteLinkField)