Update main.py
Browse files
main.py
CHANGED
@@ -90,7 +90,7 @@ async def searchhub(client: Client, message: Message):
|
|
90 |
try:
|
91 |
response = await api.x_search(query=query)
|
92 |
link = response[0]
|
93 |
-
file_path,
|
94 |
upload_text = f"**β¬οΈ π΄ππ
ππΊπ½πππ video ...**"
|
95 |
await pro.edit_text(upload_text)
|
96 |
await client.send_message(
|
|
|
90 |
try:
|
91 |
response = await api.x_search(query=query)
|
92 |
link = response[0]
|
93 |
+
file_path, thumb, _ = await api.x_download(url=link, is_stream=True)
|
94 |
upload_text = f"**β¬οΈ π΄ππ
ππΊπ½πππ video ...**"
|
95 |
await pro.edit_text(upload_text)
|
96 |
await client.send_message(
|