Block a user
CancelRetweet a tweet
Send a direct message
Send direct messages with metadata
Follow a user
Like a tweet
Mark messages as read in the direct message chat
Mute a user
Send a photo by direct message or attach it to a tweet
QuickReply a tweet
Retweet a tweet
Send direct messages with metadata
Display typing action in the direct message chat
Unblock a user
Unfollow a user
Unlike a tweet
Unmute a user
Attach a button for opening a URL to the direct message
Send a video by direct message or attach it to a tweet
The user id to be blocked
The retweeted tweet id to be canceled
Url buttons to be attached below the messages. Should contain only UrlButton
Texual content of the direct message
The coordinates of the location
The custome profile to send the messages with
The media attached to the message. Should contain exactly one Photo, Video or AnimatedGif
The twitter place represent the location. You can search places using geo/search API
Quick replies to be attached after the messages. Should contain only QuickReply
Direct messages content
The custome profile to send the messages with
Quick replies to be attached after the messages. Should contain only QuickReply
The user id to follow
The tweet id to be liked
A comma-separated list of user IDs to set as additional owners allowed to use the returned media_id in Tweets or Cards. Up to 100 additional owners may be specified
The tag to store media asset with
The file content to be upload
The file size in bytes. Required when uploading using file
The content type of the file. Required when uploading using file
A string enum value which identifies a media usecase. This identifier is used to enforce usecase specific constraints (e.g. file size, video duration) and enable advanced features
The uploaded media id
Set to true if media asset will be reused for multiple Direct Messages. Default is false
The media file url
The user id to be muted
Optional description text displayed under label text. All options must have this property defined if property is present in any option. Text is auto-wrapped and will display on a max of two lines and supports n for controling line breaks. Description text is not include in the user's message response. String, max length of 72 characters including spaces
The text label displayed on the button face. Label text is returned as the user's message response. String, max length of 36 characters including spaces. Values with URLs are not allowed and will return an error
Metadata that will be sent back in the webhook request. String, max length of 1,000 characters including spaces
The tweet id to be retweeted
Texual content of the tweet
Tweets a link directly to a Direct Message conversation with an account. By default it links to the agent who create the tweet. You can directly pass the URL string or an object specifying the URL queries.
A list of User IDs to be excluded from the reply Tweet thus removing a user from a thread
Attach media to the tweet. Should contain only Media. This is mutually exclusive from poll
and quoteTweetId
Place ID being attached to the Tweet for geo location
Attach a poll to the tweet. This is mutually exclusive from media
and quoteTweetId
Duration of the poll in minutes for a Tweet with a poll
A list of poll options for a Tweet with a poll
Link to the Tweet being quoted. This is mutually exclusive from media
and poll
Indicate who can reply to the Tweet. Default to 'everyone'
Tweet exclusively for Super Followers.
A list of User IDs being tagged in the Tweet with Media. If the user you're tagging doesn't have photo-tagging enabled, their names won't show up in the list of tagged users even though the Tweet is successfully created
The user id to be unblocked
The user id to unfollow
The tweet id to be unliked
The user id to be unmuted
The text that will be displayed to the user on each button. Max string length of 36 characters
A valid http or https target URL of the button
The message ID of the most recent message to be marked read. All messages before it will be marked read as well
Generated using TypeDoc
Send an animated gif by direct message or attach it to a tweet
MediaProps
Check official guide.