Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TwitterBot

Implements

Index

Constructors

  • new TwitterBot(__namedParameters: TwitterBotOptions): TwitterBot

Properties

agentId: string
client: default
platform: "twitter" = TWITTER

Methods

  • fetchMediaFile(url: string): Promise<{ content: ReadableStream; contentLength?: number; contentType?: string }>
  • makeApiCall<Result>(method: string, href: string, parameters?: Record<string, unknown>, options?: { asApplication?: boolean }): Promise<Result>
  • Type parameters

    • Result

    Parameters

    • method: string
    • href: string
    • Optional parameters: Record<string, unknown>
    • Optional options: { asApplication?: boolean }
      • Optional asApplication?: boolean

    Returns Promise<Result>

  • renderWelcomeMessage(name: undefined | string, message: SociablyNode): Promise<null | { name: string; welcome_message: { created_timestamp: string; id: string; message_data: any } }>
  • Parameters

    Returns Promise<null | { name: string; welcome_message: { created_timestamp: string; id: string; message_data: any } }>

  • start(): Promise<void>
  • stop(): Promise<void>

Generated using TypeDoc