mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-26 03:58:44 +00:00
add support of emoji_status_custom_emoji_id
This commit is contained in:
parent
c7f372c1e3
commit
3f6f04d00f
@ -170,6 +170,7 @@ const val addedToAttachmentMenuField = "added_to_attachment_menu"
|
|||||||
const val isPremiumField = "is_premium"
|
const val isPremiumField = "is_premium"
|
||||||
const val hasPrivateForwardsField = "has_private_forwards"
|
const val hasPrivateForwardsField = "has_private_forwards"
|
||||||
const val hasRestrictedVoiceAndVideoMessagesField = "has_restricted_voice_and_video_messages"
|
const val hasRestrictedVoiceAndVideoMessagesField = "has_restricted_voice_and_video_messages"
|
||||||
|
const val emojiStatusCustomEmojiIdField = "emoji_status_custom_emoji_id"
|
||||||
const val canJoinGroupsField = "can_join_groups"
|
const val canJoinGroupsField = "can_join_groups"
|
||||||
const val canReadAllGroupMessagesField = "can_read_all_group_messages"
|
const val canReadAllGroupMessagesField = "can_read_all_group_messages"
|
||||||
const val supportInlineQueriesField = "supports_inline_queries"
|
const val supportInlineQueriesField = "supports_inline_queries"
|
||||||
|
@ -64,7 +64,9 @@ data class ExtendedPrivateChatImpl(
|
|||||||
@SerialName(hasPrivateForwardsField)
|
@SerialName(hasPrivateForwardsField)
|
||||||
override val hasPrivateForwards: Boolean = false,
|
override val hasPrivateForwards: Boolean = false,
|
||||||
@SerialName(hasRestrictedVoiceAndVideoMessagesField)
|
@SerialName(hasRestrictedVoiceAndVideoMessagesField)
|
||||||
override val hasRestrictedVoiceAndVideoMessages: Boolean = false
|
override val hasRestrictedVoiceAndVideoMessages: Boolean = false,
|
||||||
|
@SerialName(emojiStatusCustomEmojiIdField)
|
||||||
|
override val statusEmojiId: CustomEmojiId? = null
|
||||||
) : ExtendedPrivateChat
|
) : ExtendedPrivateChat
|
||||||
|
|
||||||
typealias ExtendedUser = ExtendedPrivateChatImpl
|
typealias ExtendedUser = ExtendedPrivateChatImpl
|
||||||
|
@ -20,6 +20,7 @@ sealed interface ExtendedPrivateChat : PrivateChat, ExtendedChat {
|
|||||||
val bio: String
|
val bio: String
|
||||||
val hasPrivateForwards: Boolean
|
val hasPrivateForwards: Boolean
|
||||||
val hasRestrictedVoiceAndVideoMessages: Boolean
|
val hasRestrictedVoiceAndVideoMessages: Boolean
|
||||||
|
val statusEmojiId: CustomEmojiId?
|
||||||
|
|
||||||
val allowCreateUserIdLink: Boolean
|
val allowCreateUserIdLink: Boolean
|
||||||
get() = hasPrivateForwards
|
get() = hasPrivateForwards
|
||||||
|
Loading…
Reference in New Issue
Block a user