mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
ChatJoinRequest#inviteLink fix
This commit is contained in:
parent
c2487c5adc
commit
c7dc69d09f
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
* `Utils`:
|
* `Utils`:
|
||||||
* Rename `UserId` extension `link` to `userLink`
|
* 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
|
## 2.1.2
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ data class ChatJoinRequest(
|
|||||||
@SerialName(dateField)
|
@SerialName(dateField)
|
||||||
val date: TelegramDate,
|
val date: TelegramDate,
|
||||||
@SerialName(inviteLinkField)
|
@SerialName(inviteLinkField)
|
||||||
val inviteLink: ChatInviteLink,
|
val inviteLink: ChatInviteLink? = null,
|
||||||
@SerialName(bioField)
|
@SerialName(bioField)
|
||||||
val bio: String? = null
|
val bio: String? = null
|
||||||
) : FromUser {
|
) : FromUser {
|
||||||
|
@ -5,5 +5,5 @@ import dev.inmo.tgbotapi.types.chat.ChatJoinRequest
|
|||||||
import dev.inmo.tgbotapi.utils.RiskFeature
|
import dev.inmo.tgbotapi.utils.RiskFeature
|
||||||
|
|
||||||
@RiskFeature(RawFieldsUsageWarning)
|
@RiskFeature(RawFieldsUsageWarning)
|
||||||
val ChatJoinRequest.invite_link: ChatInviteLink
|
val ChatJoinRequest.invite_link: ChatInviteLink?
|
||||||
get() = inviteLink
|
get() = inviteLink
|
||||||
|
Loading…
Reference in New Issue
Block a user