INNER CODE UNIT · Python

tweet

trevorhobenshield/twitter-api-client · twitter/account.py:111

    def tweet(self, text: str, *, media: any = None, **kwargs) -> dict:
        variables = {
            'tweet_text': text,
            'dark_request': False,
            'media': {
                'media_entities': [],
                'possibly_sensitive': False,
            },
            'semantic_annotation_ids': [],
        }

        if reply_params := kwargs.get('reply_params', {}):
            variables |= reply_params
        if quote_params := kwargs.get('quote_params', {}):
            variables |= quote_params
        if poll_params := kwargs.get('poll_params', {}):
            variables |= poll_params

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…