Added reply_to_private()

This commit is contained in:
Lasse Studion 2022-12-18 17:32:06 +01:00
parent 0ab9f122da
commit dfb09a7255

View File

@ -100,4 +100,9 @@ class API:
def reply_with_url(self, tweet_id, url, username): def reply_with_url(self, tweet_id, url, username):
params = {"reply": {"in_reply_to_tweet_id": str(tweet_id)}, "text": f"Hi {username}! Download a list of Mastodon users that you are following on Twitter: {url} Take that csv-file and import in Mastodon (Settings > Import)."} params = {"reply": {"in_reply_to_tweet_id": str(tweet_id)}, "text": f"Hi {username}! Download a list of Mastodon users that you are following on Twitter: {url} Take that csv-file and import in Mastodon (Settings > Import)."}
self.post_tweet(params=params) self.post_tweet(params=params)
def reply_to_private(self, tweet_id, username):
""" Reply to private profiles. """
params = {"reply": {"in_reply_to_tweet_id": str(tweet_id)}, "text": f"Hi {username}! Because you have a private I can't see what profiles you are following."}
self.post_tweet(params=params)