Package-level declarations

Types

Link copied to clipboard
fun interface Action
Link copied to clipboard
data class ActivityCtx<out T : ProcessedUpdate>(val update: T)
Link copied to clipboard
fun interface BreakCondition
Link copied to clipboard
data class BusinessConnectionUpdate(val updateId: Int, val update: Update, val businessConnection: BusinessConnection) : ProcessedUpdate, UserReference
Link copied to clipboard
data class BusinessMessageUpdate(val updateId: Int, val update: Update, val businessMessage: Message) : ProcessedUpdate, UserReference
Link copied to clipboard
data class CallbackQueryUpdate(val updateId: Int, val update: Update, val callbackQuery: CallbackQuery) : ProcessedUpdate, UserReference
Link copied to clipboard
abstract class ChainLink
Link copied to clipboard
data class ChannelPostUpdate(val updateId: Int, val update: Update, val channelPost: Message) : ProcessedUpdate, UserReference
Link copied to clipboard
data class ChatBoostUpdate(val updateId: Int, val update: Update, val chatBoost: ChatBoostUpdated) : ProcessedUpdate
Link copied to clipboard
data class ChatJoinRequestUpdate(val updateId: Int, val update: Update, val chatJoinRequest: ChatJoinRequest) : ProcessedUpdate, UserReference
Link copied to clipboard
data class ChatMemberUpdate(val updateId: Int, val update: Update, val chatMember: ChatMemberUpdated) : ProcessedUpdate, UserReference
Link copied to clipboard
data class ChosenInlineResultUpdate(val updateId: Int, val update: Update, val chosenInlineResult: ChosenInlineResult) : ProcessedUpdate, UserReference
Link copied to clipboard
data class CommandContext<out T : ProcessedUpdate>(val update: T, val parameters: Map<String, String>)
Link copied to clipboard
@Serializable
enum Currency : Enum<Currency>
Link copied to clipboard
data class DeletedBusinessMessagesUpdate(val updateId: Int, val update: Update, val deletedBusinessMessages: BusinessMessagesDeleted) : ProcessedUpdate
Link copied to clipboard
data class EditedBusinessMessageUpdate(val updateId: Int, val update: Update, val editedBusinessMessage: Message) : ProcessedUpdate, UserReference
Link copied to clipboard
data class EditedChannelPostUpdate(val updateId: Int, val update: Update, val editedChannelPost: Message) : ProcessedUpdate, UserReference
Link copied to clipboard
data class EditedMessageUpdate(val updateId: Int, val update: Update, val editedMessage: Message) : ProcessedUpdate, UserReference
Link copied to clipboard
data class FailedUpdate(val exception: Throwable, val update: Update)
Link copied to clipboard

Proxy enum class for Ktor log leveling.

Link copied to clipboard
@Serializable(with = Identifier.Serde::class)
sealed class Identifier
Link copied to clipboard
@Serializable(with = ImplicitFile.Str.Companion::class)
sealed class ImplicitFile
Link copied to clipboard
data class InlineQueryUpdate(val updateId: Int, val update: Update, val inlineQuery: InlineQuery) : ProcessedUpdate, UserReference
Link copied to clipboard
data class InputBreakPoint(val condition: ActivityCtx<ProcessedUpdate>.() -> Boolean, val action: OnInputActivity? = null, val repeat: Boolean = true)
Link copied to clipboard
@Serializable
data class InputFile(val data: ByteArray, val fileName: String = DEFAULT_FILENAME, val contentType: String = DEFAULT_CONTENT_TYPE)
Link copied to clipboard
data class InvocationMeta(val qualifier: String, val function: String, val rateLimits: RateLimits)
Link copied to clipboard
enum LogLvl : Enum<LogLvl>

Proxy enum for Bot logger leveling.

Link copied to clipboard
data class MessageReactionCountUpdate(val updateId: Int, val update: Update, val messageReactionCount: MessageReactionCountUpdated) : ProcessedUpdate
Link copied to clipboard
data class MessageReactionUpdate(val updateId: Int, val update: Update, val messageReaction: MessageReactionUpdated) : ProcessedUpdate, UserReference
Link copied to clipboard
data class MessageUpdate(val updateId: Int, val update: Update, val message: Message) : ProcessedUpdate, UserReference
Link copied to clipboard
data class MyChatMemberUpdate(val updateId: Int, val update: Update, val myChatMember: ChatMemberUpdated) : ProcessedUpdate, UserReference
Link copied to clipboard
data class PollAnswerUpdate(val updateId: Int, val update: Update, val pollAnswer: PollAnswer) : ProcessedUpdate, UserReference
Link copied to clipboard
data class PollUpdate(val updateId: Int, val update: Update, val poll: Poll) : ProcessedUpdate
Link copied to clipboard
data class PreCheckoutQueryUpdate(val updateId: Int, val update: Update, val preCheckoutQuery: PreCheckoutQuery) : ProcessedUpdate, UserReference
Link copied to clipboard
Link copied to clipboard
data class RemovedChatBoostUpdate(val updateId: Int, val update: Update, val removedChatBoost: ChatBoostRemoved) : ProcessedUpdate
Link copied to clipboard
@Serializable
sealed class Response<T>
Link copied to clipboard
data class ShippingQueryUpdate(val updateId: Int, val update: Update, val shippingQuery: ShippingQuery) : ProcessedUpdate, UserReference
Link copied to clipboard
data class SingleInputChain(id: String, inputAction: OnInputActivity, rateLimits: RateLimits, currentLevel: Int = 0, tail: String? = null, breakPoint: InputBreakPoint? = null)
Link copied to clipboard
interface TextReference
Link copied to clipboard
data class TgMethod(val name: String)
Link copied to clipboard
@Serializable
enum UpdateType : Enum<UpdateType>
Link copied to clipboard
interface UserReference

Properties

Link copied to clipboard

Functions

Link copied to clipboard
inline suspend fun <T, R> Deferred<Response<out T>>.foldResponse(success: Response.Success<T>.() -> R, failure: Response.Failure.() -> R): R
Link copied to clipboard
fun <T> Response<T>.getOrNull(): T?
inline suspend fun <T> Deferred<Response<out T>>.getOrNull(): T?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T> Response<T>.onFailure(block: (Response.Failure) -> Unit): T?
inline suspend fun <T> Deferred<Response<out T>>.onFailure(block: (Response.Failure) -> Unit): T?