Package-level declarations

Types

Link copied to clipboard
@Serializable
data class BusinessConnection(val id: String, val user: User, val userChatId: Long, val date: Instant, val canReply: Boolean, 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.