Search
Preparing search index...
The search index is not available
Sociably
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Sociably
twitter
TwitterBot
Class TwitterBot
Hierarchy
TwitterBot
Implements
SociablyBot
<
TwitterChannel
,
TwitterJob
,
TwitterApiResult
>
Index
Constructors
constructor
Properties
agent
Id
client
engine
platform
Methods
fetch
Media
File
make
Api
Call
render
render
Direct
Meaasge
render
Media
render
Tweet
render
Welcome
Message
start
stop
Constructors
constructor
new
Twitter
Bot
(
__namedParameters
:
TwitterBotOptions
)
:
TwitterBot
Parameters
__namedParameters:
TwitterBotOptions
Returns
TwitterBot
Properties
agent
Id
agent
Id
:
string
client
client
:
default
engine
engine
:
default
<
TwitterChannel
,
TwitterSegmentValue
,
TwitterComponent
<
unknown
,
UnitSegment
<
TwitterSegmentValue
>
>
,
TwitterJob
,
TwitterApiResult
>
platform
platform
:
"twitter"
= TWITTER
Methods
fetch
Media
File
fetch
Media
File
(
url
:
string
)
:
Promise
<
{
content
:
ReadableStream
;
contentLength
?:
number
;
contentType
?:
string
}
>
Parameters
url:
string
Returns
Promise
<
{
content
:
ReadableStream
;
contentLength
?:
number
;
contentType
?:
string
}
>
make
Api
Call
make
Api
Call
<
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
as
Application
?:
boolean
Returns
Promise
<
Result
>
render
render
(
channel
:
null
|
TwitterChat
|
TweetTarget
, message
:
SociablyNode
)
:
Promise
<
null
|
TwitterDispatchResponse
>
Parameters
channel:
null
|
TwitterChat
|
TweetTarget
message:
SociablyNode
Returns
Promise
<
null
|
TwitterDispatchResponse
>
render
Direct
Meaasge
render
Direct
Meaasge
(
target
:
string
|
TwitterChat
|
TwitterUser
, message
:
SociablyNode
)
:
Promise
<
null
|
TwitterDispatchResponse
>
Parameters
target:
string
|
TwitterChat
|
TwitterUser
message:
SociablyNode
Returns
Promise
<
null
|
TwitterDispatchResponse
>
render
Media
render
Media
(
media
:
SociablyNode
)
:
Promise
<
null
|
RenderMediaResponse
[]
>
Parameters
media:
SociablyNode
Returns
Promise
<
null
|
RenderMediaResponse
[]
>
render
Tweet
render
Tweet
(
target
:
null
|
string
|
TweetTarget
|
default
, message
:
SociablyNode
)
:
Promise
<
null
|
TwitterDispatchResponse
>
Parameters
target:
null
|
string
|
TweetTarget
|
default
message:
SociablyNode
Returns
Promise
<
null
|
TwitterDispatchResponse
>
render
Welcome
Message
render
Welcome
Message
(
name
:
undefined
|
string
, message
:
SociablyNode
)
:
Promise
<
null
|
{
name
:
string
;
welcome_message
:
{
created_timestamp
:
string
;
id
:
string
;
message_data
:
any
}
}
>
Parameters
name:
undefined
|
string
message:
SociablyNode
Returns
Promise
<
null
|
{
name
:
string
;
welcome_message
:
{
created_timestamp
:
string
;
id
:
string
;
message_data
:
any
}
}
>
start
start
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
stop
stop
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Modules
auth
core
create-
app
dev-
tools
dialogflow
http
line
messenger
next
redis-
state
script
stream
telegram
twitter
twitter/asset
twitter/components
twitter/webview
twitter/webview/client
default
websocket
webview
Twitter
Bot
constructor
agent
Id
client
engine
platform
fetch
Media
File
make
Api
Call
render
render
Direct
Meaasge
render
Media
render
Tweet
render
Welcome
Message
start
stop
Generated using
TypeDoc