randydev commited on
Commit
69606ac
·
verified ·
1 Parent(s): 4a7c130

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -4
main.py CHANGED
@@ -51,11 +51,10 @@ async def get_user_story(link=None):
51
  username, random_id = get_random_from_channel(link)
52
  try:
53
  stories = await user_client.get_stories(username, story_ids=[random_id])
54
- LOGS.info(f"Updates: {stories}")
55
- return {"done": "nothing"}
56
  except Exception as e:
57
  return {"error": str(e)}
58
- """"
59
  file_id = (
60
  stories.photo.file_id if stories and stories.photo else None
61
  or stories.video.file_id if stories and stories.video else None
@@ -76,7 +75,6 @@ async def get_user_story(link=None):
76
  "selected_contacts": stories.selected_contacts,
77
  "outgoing": stories.outgoing
78
  }
79
- """
80
 
81
  @fast_app.get("/user/get_user")
82
  async def get_user(user_id=None):
 
51
  username, random_id = get_random_from_channel(link)
52
  try:
53
  stories = await user_client.get_stories(username, story_ids=[random_id])
54
+ # LOGS.info(f"Updates: {stories}")
55
+ # return {"done": "nothing"}
56
  except Exception as e:
57
  return {"error": str(e)}
 
58
  file_id = (
59
  stories.photo.file_id if stories and stories.photo else None
60
  or stories.video.file_id if stories and stories.video else None
 
75
  "selected_contacts": stories.selected_contacts,
76
  "outgoing": stories.outgoing
77
  }
 
78
 
79
  @fast_app.get("/user/get_user")
80
  async def get_user(user_id=None):