Corin1998 commited on
Commit
f95efe8
·
verified ·
1 Parent(s): 6c73f6a

Update app/utils/x_client.py

Browse files
Files changed (1) hide show
  1. app/utils/x_client.py +1 -4
app/utils/x_client.py CHANGED
@@ -1,9 +1,6 @@
1
  import tweepy
2
  from app.config import settings
3
 
4
-
5
-
6
-
7
  def post_to_x(text: str):
8
  auth = tweepy.OAuth1UserHandler(
9
  settings.X_API_KEY, settings.X_API_SECRET,
@@ -11,4 +8,4 @@ def post_to_x(text: str):
11
  )
12
  api = tweepy.API(auth)
13
  status = api.update_status(status=text[:270])
14
- return {"id": status.id, "url": f"https://x.com/i/web/status/{status.id}"}
 
1
  import tweepy
2
  from app.config import settings
3
 
 
 
 
4
  def post_to_x(text: str):
5
  auth = tweepy.OAuth1UserHandler(
6
  settings.X_API_KEY, settings.X_API_SECRET,
 
8
  )
9
  api = tweepy.API(auth)
10
  status = api.update_status(status=text[:270])
11
+ return {"id": status.id, "url": f"https://x.com/i/web/status/{status.id}"}