Class TwitterChannelAdapter

Channel adapter for Twitter / X.

Uses the twitter-api-v2 package via dynamic import so the dependency is optional -- it is only loaded at connection time.

Capabilities: text, images, video, hashtags, mentions, threads, reactions, polls.

Hierarchy (view full)

Constructors

Methods

  • Get the authenticated user information.

    Returns undefined | {
        id: string;
        username: string;
        name: string;
    }

Properties

status: ChannelConnectionStatus = 'disconnected'
connectedSince: undefined | string
errorMessage: undefined | string
platformInfo: Record<string, unknown> = {}
auth: undefined | ChannelAuthConfig & {
    params?: TwitterAuthParams;
}

Stored auth config so reconnect() can re-use it.

retryConfig: RetryConfig
platform: ChannelPlatform = 'twitter'

Platform this adapter serves.

displayName: "Twitter / X" = 'Twitter / X'

Human-readable display name (e.g., "WhatsApp Business").

capabilities: readonly ChannelCapability[] = ...

Declared capabilities of this adapter.