randydev commited on
Commit
a0ef5e4
Β·
verified Β·
1 Parent(s): b9dd5cd

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -2
main.py CHANGED
@@ -86,9 +86,10 @@ async def searchhub(client: Client, message: Message):
86
  query = message.text.split(" ", 1)[1] if len(message.command) > 1 else None
87
  if not query:
88
  return await message.reply_text("please search for pornohub.")
89
- response = await api.x_search(query=query)
90
- link = response[0]
91
  try:
 
 
 
92
  file_path, _, _, = await api.x_download(url=link, is_stream=True)
93
  upload_text = f"**⬆️ π–΄π—‰π—…π—ˆπ–Ίπ–½π—‚π—‡π—€ video ...**"
94
  await pro.edit_text(upload_text)
 
86
  query = message.text.split(" ", 1)[1] if len(message.command) > 1 else None
87
  if not query:
88
  return await message.reply_text("please search for pornohub.")
 
 
89
  try:
90
+ response = await api.x_search(query=query)
91
+ link = response[0]
92
+ pro = await message.reply_text("Processing.....")
93
  file_path, _, _, = await api.x_download(url=link, is_stream=True)
94
  upload_text = f"**⬆️ π–΄π—‰π—…π—ˆπ–Ίπ–½π—‚π—‡π—€ video ...**"
95
  await pro.edit_text(upload_text)