All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.dev.inmo.tgbotapi.abstracts.WithUser.kt Maven / Gradle / Ivy

Go to download

Core part of tgbotapi with all (and only) required functionality for working with Telegram Bot API

There is a newer version: 22.0.0
Show newest version
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