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

ChatJoinRequest#inviteLink fix

This commit is contained in:
InsanusMokrassar 2022-07-09 23:09:52 +06:00
parent c2487c5adc
commit c7dc69d09f
3 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,8 @@
* `Utils`:
* Rename `UserId` extension `link` to `userLink`
* `Core`
* `ChatJoinRequest#inviteLink` is nullable due to the fact that join requests without link do not require invite link
## 2.1.2

View File

@ -18,7 +18,7 @@ data class ChatJoinRequest(
@SerialName(dateField)
val date: TelegramDate,
@SerialName(inviteLinkField)
val inviteLink: ChatInviteLink,
val inviteLink: ChatInviteLink? = null,
@SerialName(bioField)
val bio: String? = null
) : FromUser {

View File

@ -5,5 +5,5 @@ import dev.inmo.tgbotapi.types.chat.ChatJoinRequest
import dev.inmo.tgbotapi.utils.RiskFeature
@RiskFeature(RawFieldsUsageWarning)
val ChatJoinRequest.invite_link: ChatInviteLink
val ChatJoinRequest.invite_link: ChatInviteLink?
get() = inviteLink