INNER CODE UNIT · Python
untweet
trevorhobenshield/twitter-api-client · twitter/account.py:220
def untweet(self, tweet_id: int) -> dict:
variables = {'tweet_id': tweet_id, 'dark_request': False}
return self.gql('POST', Operation.DeleteTweet, variables)
def reply(self, text: str, tweet_id: int) -> dict:
variables = {
'tweet_text': text,
'reply': {
'in_reply_to_tweet_id': tweet_id,
'exclude_reply_user_ids': [],
},
'batch_compose': 'BatchSubsequent',
'dark_request': False,
'media': {
'media_entities': [],
'possibly_sensitive': False,
},
'semantic_annotation_ids': [],