mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 00:03:48 +00:00
small fixes in docs
This commit is contained in:
parent
49031bf0e6
commit
8823b268cc
@ -3,7 +3,7 @@ package dev.inmo.tgbotapi.abstracts
|
||||
import dev.inmo.tgbotapi.types.chat.User
|
||||
|
||||
/**
|
||||
* Inheritors of this interface have some [User] as a source of data. For example, any [dev.inmo.tgbotapi.types.queries.callback.CallbackQuery]
|
||||
* Inheritors of this interface **may** have some [User] as a source of data. For example, any [dev.inmo.tgbotapi.types.queries.callback.CallbackQuery]
|
||||
* have [User] as the source of that query
|
||||
*/
|
||||
interface OptionallyFromUser : OptionallyWithUser {
|
||||
@ -15,7 +15,7 @@ interface OptionallyFromUser : OptionallyWithUser {
|
||||
get() = from
|
||||
}
|
||||
/**
|
||||
* Inheritors of this interface have some [User] as a source of data. For example, any [dev.inmo.tgbotapi.types.queries.callback.CallbackQuery]
|
||||
* Inheritors of this interface **must** have some [User] as a source of data. For example, any [dev.inmo.tgbotapi.types.queries.callback.CallbackQuery]
|
||||
* have [User] as the source of that query
|
||||
*/
|
||||
interface FromUser : OptionallyFromUser, WithUser {
|
||||
|
@ -4,16 +4,16 @@ import dev.inmo.tgbotapi.utils.internal.ClassCastsIncluded
|
||||
import dev.inmo.tgbotapi.types.chat.User
|
||||
|
||||
/**
|
||||
* All inheritors of this type have [User] in their data as one of the main data
|
||||
* All inheritors of this type **may** have [User] in their data as one of the main data
|
||||
*
|
||||
* @see FromUser
|
||||
* @see OptionallyFromUser
|
||||
*/
|
||||
@ClassCastsIncluded(excludeRegex = ".*Impl")
|
||||
interface OptionallyWithUser {
|
||||
val user: User?
|
||||
}
|
||||
/**
|
||||
* All inheritors of this type have [User] in their data as one of the main data
|
||||
* All inheritors of this type **must** have [User] in their data as one of the main data
|
||||
*
|
||||
* @see FromUser
|
||||
*/
|
||||
|
@ -91,9 +91,7 @@ data class CreateChatInviteLinkUnlimited(
|
||||
/**
|
||||
* Represent [request](https://core.telegram.org/bots/api#createchatsubscriptioninvitelink)
|
||||
*
|
||||
* @see CreateChatInviteLink.unlimited
|
||||
* @see CreateChatInviteLinkWithLimitedMembers
|
||||
* @see CreateChatInviteLinkWithJoinRequest
|
||||
* @see CreateChatInviteLink.subscription
|
||||
*/
|
||||
@Serializable
|
||||
data class CreateChatSubscriptionInviteLink(
|
||||
|
Loading…
Reference in New Issue
Block a user