Interface INewTweet

Configuration for the new tweet to be posted.

interface INewTweet {
    media?: INewTweetMedia[];
    quote?: string;
    replyTo?: string;
    scheduleFor?: Date;
    text?: string;
}

Implemented by

Properties

media?: INewTweetMedia[]

The list of media to be uploaded.

  • The media first needs to be uploaded.
  • After uploading, the returned id(s) can be used to reference the media here.
  • Maximum number of media items that can be posted is 4.
quote?: string

The id of the tweet to quote.

replyTo?: string

The id of the Tweet to which the given Tweet must be a reply.

scheduleFor?: Date

The date/time at which the tweet is to be scheduled for posting.

text?: string

The text for the tweet to be created.

Length of the tweet must be <= 280 characters.