plugins library
Collection of built-in transformers for Televerse.
Classes
-
Conversation<
CTX extends Context> - A conversation handle that provides waiting capabilities with timeout support.
- ConversationContextOperations
- Wrapper class for conversation operations.
-
ConversationPlugin<
CTX extends Context> - A conversation management plugin that allows waiting for user updates with timeout support.
- ConversationState
- Represents the state of a conversation with expiry support.
- ConversationStats
- Statistics about conversation usage.
- ConversationStorage
- Enhanced interface for storing conversation state with key enumeration.
- LoggerOptions
- Configuration options for the logging transformer.
-
LoggingPlugin<
CTX extends Context> - A comprehensive logging plugin for Telegram Bot API requests.
- MemoryConversationStorage
- Enhanced in-memory implementation of conversation storage.
-
MemorySessionStorage<
T> - In-memory session storage implementation.
-
SessionContext<
TSession> - Abstract base class for contexts with typed session access.
-
SessionPlugin<
CTX extends Context, TSession> - A comprehensive session management plugin.
-
SessionStorage<
T> - Interface for session storage backends.
Extensions
- ConversationContextExtension on Context
- Extension to add conversation capabilities to contexts.
- ConversationContextGetter on Context
- Convenience getter for conversation operations.
Functions
-
createConversation<
CTX extends Context> (String name, ConversationFunction< CTX> conversationFn) → Middleware<CTX> - Creates a middleware that registers a conversation function.
Typedefs
-
ConversationFunction<
CTX extends Context> = Future< void> Function(Conversation<CTX> conversation, CTX ctx) - Type definition for conversation functions.
Exceptions / Errors
- ConversationHaltException
- Exception thrown when a conversation is halted.
- ConversationTimeoutException
- Exception thrown when a conversation times out.