Memes Object
Memes Object Documentation
The Memes
class provides methods for retrieving and subscribing to Trump-related memes and Truth Social posts within the Roboqo platform. It extends Subscribable
, enabling real-time updates when new memes or posts are available.
Methods
getTrumpMemes
getTrumpMemes
Description Retrieves a list of Trump-related memes.
Signature
public getTrumpMemes(): Promise<TrumpMeme[]>
Parameters
None.
Returns
Promise<TrumpMeme[]>
: A promise that resolves to an array ofTrumpMeme
objects.
watchTrumpMemes
watchTrumpMemes
Description Subscribes to new Trump-related memes and triggers a callback when a new meme is available.
Signature
public watchTrumpMemes(callback: (meme: TrumpMeme) => void): void
Parameters
callback
((meme: TrumpMeme) => void
): A function that will be invoked whenever a new Trump meme is available.
Returns
void
watchTrumpTweets
watchTrumpTweets
Description Subscribes to new Trump-related posts on Truth Social and triggers a callback when a new post is available.
Signature
public watchTrumpTweets(callback: (tweet: TruthSocialPost) => void): void
Parameters
callback
((tweet: TruthSocialPost) => void
): A function that will be invoked whenever a new Trump-related post is available.
Returns
void
Last updated