mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
is_member adding
This commit is contained in:
parent
8b67f16da3
commit
2b831a803a
@ -15,6 +15,7 @@ by their parents
|
|||||||
* All current `Chat` abstractions are deprecated and rewritten as typealiases. Use `Chat` abstractions from
|
* All current `Chat` abstractions are deprecated and rewritten as typealiases. Use `Chat` abstractions from
|
||||||
`com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts` package
|
`com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts` package
|
||||||
* Common Groups now may have pinned message
|
* Common Groups now may have pinned message
|
||||||
|
* `is_member` field added into `RestrictedChatMember`
|
||||||
|
|
||||||
## 0.12.0 Webhooks
|
## 0.12.0 Webhooks
|
||||||
|
|
||||||
|
@ -26,6 +26,8 @@ data class RawChatMember(
|
|||||||
private val canPinMessages: Boolean = false,
|
private val canPinMessages: Boolean = false,
|
||||||
@SerialName(canPromoteMembersField)
|
@SerialName(canPromoteMembersField)
|
||||||
private val canPromoteMembers: Boolean = false,
|
private val canPromoteMembers: Boolean = false,
|
||||||
|
@SerialName(isMemberField)
|
||||||
|
private val isMember: Boolean = false,
|
||||||
@SerialName(canSendMessagesField)
|
@SerialName(canSendMessagesField)
|
||||||
private val canSendMessages: Boolean = false,
|
private val canSendMessages: Boolean = false,
|
||||||
@SerialName(canSendMediaMessagesField)
|
@SerialName(canSendMediaMessagesField)
|
||||||
@ -55,6 +57,7 @@ data class RawChatMember(
|
|||||||
"restricted" -> RestrictedChatMember(
|
"restricted" -> RestrictedChatMember(
|
||||||
user,
|
user,
|
||||||
until_date,
|
until_date,
|
||||||
|
isMember,
|
||||||
canSendMessages,
|
canSendMessages,
|
||||||
canSendMediaMessages,
|
canSendMediaMessages,
|
||||||
canSendOtherMessages,
|
canSendOtherMessages,
|
||||||
|
@ -6,6 +6,7 @@ import com.github.insanusmokrassar.TelegramBotAPI.types.User
|
|||||||
data class RestrictedChatMember(
|
data class RestrictedChatMember(
|
||||||
override val user: User,
|
override val user: User,
|
||||||
override val untilDate: TelegramDate?,
|
override val untilDate: TelegramDate?,
|
||||||
|
val isMember: Boolean,
|
||||||
val canSendMessages: Boolean,
|
val canSendMessages: Boolean,
|
||||||
val canSendMediaMessages: Boolean,
|
val canSendMediaMessages: Boolean,
|
||||||
val canSendOtherMessages: Boolean,
|
val canSendOtherMessages: Boolean,
|
||||||
|
@ -131,6 +131,7 @@ const val inputMessageContentField = "input_message_content"
|
|||||||
const val hideUrlField = "hide_url"
|
const val hideUrlField = "hide_url"
|
||||||
|
|
||||||
|
|
||||||
|
const val isMemberField = "is_member"
|
||||||
const val canSendMessagesField = "can_send_messages"
|
const val canSendMessagesField = "can_send_messages"
|
||||||
const val canSendMediaMessagesField = "can_send_media_messages"
|
const val canSendMediaMessagesField = "can_send_media_messages"
|
||||||
const val canSendOtherMessagesField = "can_send_other_messages"
|
const val canSendOtherMessagesField = "can_send_other_messages"
|
||||||
|
Loading…
Reference in New Issue
Block a user