ExtendedBot

@Serializable
data class ExtendedBot(val id: UserId, val firstName: String, val lastName: String = "", val username: Username? = null, val canJoinGroups: Boolean = false, val canReadAllGroupMessages: Boolean = false, val supportsInlineQueries: Boolean = false, val canConnectToBusiness: Boolean = false, val chatPhoto: ChatPhoto? = null, val accentColorId: ColorId = ColorId(0), val profileAccentColorId: ColorId? = null, val backgroundCustomEmojiId: CustomEmojiId? = null, val profileBackgroundCustomEmojiId: CustomEmojiId? = null, val maxReactionsCount: Int = 3, val hasMainWebApp: Boolean = false) : Bot, ExtendedChat

Constructors

Link copied to clipboard
constructor(id: UserId, firstName: String, lastName: String = "", username: Username? = null, canJoinGroups: Boolean = false, canReadAllGroupMessages: Boolean = false, supportsInlineQueries: Boolean = false, canConnectToBusiness: Boolean = false, chatPhoto: ChatPhoto? = null, accentColorId: ColorId = ColorId(0), profileAccentColorId: ColorId? = null, backgroundCustomEmojiId: CustomEmojiId? = null, profileBackgroundCustomEmojiId: CustomEmojiId? = null, maxReactionsCount: Int = 3, hasMainWebApp: Boolean = false)

Properties

Link copied to clipboard
@SerialName(value = "accent_color_id")
open override val accentColorId: ColorId
Link copied to clipboard
@SerialName(value = "background_custom_emoji_id")
open override val backgroundCustomEmojiId: CustomEmojiId? = null
Link copied to clipboard
@SerialName(value = "can_connect_to_business")
val canConnectToBusiness: Boolean = false
Link copied to clipboard
@SerialName(value = "can_join_groups")
val canJoinGroups: Boolean = false
Link copied to clipboard
@SerialName(value = "can_read_all_group_messages")
val canReadAllGroupMessages: Boolean = false
Link copied to clipboard
@SerialName(value = "photo")
open override val chatPhoto: ChatPhoto? = null
Link copied to clipboard
@SerialName(value = "first_name")
open override val firstName: String
Link copied to clipboard
@SerialName(value = "has_main_web_app")
val hasMainWebApp: Boolean = false
Link copied to clipboard
@SerialName(value = "id")
open override val id: UserId
Link copied to clipboard
@SerialName(value = "last_name")
open override val lastName: String
Link copied to clipboard
@SerialName(value = "max_reaction_count")
open override val maxReactionsCount: Int = 3
Link copied to clipboard
@SerialName(value = "profile_accent_color_id")
open override val profileAccentColorId: ColorId? = null
Link copied to clipboard
@SerialName(value = "profile_background_custom_emoji_id")
open override val profileBackgroundCustomEmojiId: CustomEmojiId? = null
Link copied to clipboard
@SerialName(value = "supports_inline_queries")
val supportsInlineQueries: Boolean = false
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "username")
open override val username: Username? = null

Functions

Link copied to clipboard
Link copied to clipboard