commonMain.dev.inmo.tgbotapi.abstracts.WithUser.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tgbotapi.core-jvm Show documentation
Show all versions of tgbotapi.core-jvm Show documentation
Core part of tgbotapi with all (and only) required functionality for working with Telegram Bot API
package dev.inmo.tgbotapi.abstracts
import dev.inmo.tgbotapi.utils.internal.ClassCastsIncluded
import dev.inmo.tgbotapi.types.chat.User
/**
* All inheritors of this type **may** have [User] in their data as one of the main data
*
* @see OptionallyFromUser
*/
@ClassCastsIncluded(excludeRegex = ".*Impl")
interface OptionallyWithUser {
val user: User?
}
/**
* All inheritors of this type **must** have [User] in their data as one of the main data
*
* @see FromUser
*/
interface WithUser : OptionallyWithUser {
override val user: User
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy