Package-level declarations

Types

Link copied to clipboard
@Serializable
data class BusinessBotRights(val canReply: Boolean? = null, val canReadMessages: Boolean? = null, val canDeleteSentMessages: Boolean? = null, val canDeleteAllMessages: Boolean? = null, val canEditName: Boolean? = null, val canEditBio: Boolean? = null, val canEditProfilePhoto: Boolean? = null, val canEditUsername: Boolean? = null, val canChangeGiftSettings: Boolean? = null, val canViewGiftsAndStars: Boolean? = null, val canConvertGiftsToStars: Boolean? = null, val canTransferAndUpgradeGifts: Boolean? = null, val canTransferStars: Boolean? = null, val canManageStories: Boolean? = null)

Represents the rights of a business bot.

Link copied to clipboard
@Serializable
data class BusinessConnection(val id: String, val user: User, val userChatId: Long, val date: Instant, val rights: BusinessBotRights, val isEnabled: Boolean)

Describes the connection of the bot with a business account.

Link copied to clipboard
@Serializable
data class BusinessIntro(val title: String? = null, val message: String? = null, val sticker: Sticker? = null)

Contains information about the start page settings of a Telegram Business account.

Link copied to clipboard
@Serializable
data class BusinessLocation(val address: String, val location: Location? = null)

Contains information about the location of a Telegram Business account.

Link copied to clipboard
@Serializable
data class BusinessMessagesDeleted(val businessConnectionId: String, val chat: Chat, val messageIds: List<Int>)

This object is received when messages are deleted from a connected business account.

Link copied to clipboard
@Serializable
data class BusinessOpeningHours(val timeZoneName: String, val openingHours: List<BusinessOpeningHoursInterval>)

Describes the opening hours of a business.

Link copied to clipboard
@Serializable
data class BusinessOpeningHoursInterval(val openingMinute: Int, val closingMinute: Int)

Describes an interval of time during which a business is open.