telebot-ts API Documentation - v1.0.0
    Preparing search index...

    Interface LinearConversationOptions<C>

    Configuration options for LinearConversation.

    interface LinearConversationOptions<C extends CallbackContext = CallbackContext> {
        entry_command?: string;
        entry_filter?: BaseFilter;
        on_timeout?: (context: C) => void | Promise<void>;
        per_chat?: boolean;
        per_user?: boolean;
        timeout_seconds?: number;
    }

    Type Parameters

    Index

    Optionalentry_command

    entry_command?: string

    Slash command that triggers the start of this conversation (e.g. "survey").

    Optionalentry_filter

    entry_filter?: BaseFilter

    Filter matching updates that trigger the start of this conversation.

    on_timeout?: (context: C) => void | Promise<void>

    Optional callback invoked when the conversation times out due to inactivity.

    per_chat?: boolean

    Whether the conversation is scoped per chat. Default: true.

    per_user?: boolean

    Whether the conversation is scoped per user. Default: true.

    timeout_seconds?: number

    Maximum idle duration in seconds to wait for a user response before expiring.