Update bot.py
Browse files
bot.py
CHANGED
|
@@ -60,7 +60,7 @@ async def handle_file(client: Client, message: Message):
|
|
| 60 |
# If user wants 2GB, we really should stream.
|
| 61 |
|
| 62 |
# Let's try direct streaming pipe
|
| 63 |
-
form = aiohttp.FormData()
|
| 64 |
form.add_field('reqtype', 'fileupload')
|
| 65 |
form.add_field('fileToUpload', file_generator(), filename=file_name)
|
| 66 |
|
|
|
|
| 60 |
# If user wants 2GB, we really should stream.
|
| 61 |
|
| 62 |
# Let's try direct streaming pipe
|
| 63 |
+
form = aiohttp.FormData()
|
| 64 |
form.add_field('reqtype', 'fileupload')
|
| 65 |
form.add_field('fileToUpload', file_generator(), filename=file_name)
|
| 66 |
|