mirror of
https://github.com/avipatilpro/FileStreamBot.git
synced 2026-01-15 14:22:53 -03:00
Forgot to Change
This commit is contained in:
@@ -72,14 +72,14 @@ class TGCustomYield:
|
|||||||
await media_session.start()
|
await media_session.start()
|
||||||
|
|
||||||
for _ in range(3):
|
for _ in range(3):
|
||||||
exported_auth = await client.send(
|
exported_auth = await client.invoke(
|
||||||
raw.functions.auth.ExportAuthorization(
|
raw.functions.auth.ExportAuthorization(
|
||||||
dc_id=data.dc_id
|
dc_id=data.dc_id
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await media_session.send(
|
await media_session.invoke(
|
||||||
raw.functions.auth.ImportAuthorization(
|
raw.functions.auth.ImportAuthorization(
|
||||||
id=exported_auth.id,
|
id=exported_auth.id,
|
||||||
bytes=exported_auth.bytes
|
bytes=exported_auth.bytes
|
||||||
@@ -157,7 +157,7 @@ class TGCustomYield:
|
|||||||
|
|
||||||
location = await self.get_location(data)
|
location = await self.get_location(data)
|
||||||
|
|
||||||
r = await media_session.send(
|
r = await media_session.invoke(
|
||||||
raw.functions.upload.GetFile(
|
raw.functions.upload.GetFile(
|
||||||
location=location,
|
location=location,
|
||||||
offset=offset,
|
offset=offset,
|
||||||
@@ -179,7 +179,7 @@ class TGCustomYield:
|
|||||||
if 1 < current_part <= part_count:
|
if 1 < current_part <= part_count:
|
||||||
yield chunk
|
yield chunk
|
||||||
|
|
||||||
r = await media_session.send(
|
r = await media_session.invoke(
|
||||||
raw.functions.upload.GetFile(
|
raw.functions.upload.GetFile(
|
||||||
location=location,
|
location=location,
|
||||||
offset=offset,
|
offset=offset,
|
||||||
@@ -199,7 +199,7 @@ class TGCustomYield:
|
|||||||
limit = 1024 * 1024
|
limit = 1024 * 1024
|
||||||
offset = 0
|
offset = 0
|
||||||
|
|
||||||
r = await media_session.send(
|
r = await media_session.invoke(
|
||||||
raw.functions.upload.GetFile(
|
raw.functions.upload.GetFile(
|
||||||
location=location,
|
location=location,
|
||||||
offset=offset,
|
offset=offset,
|
||||||
@@ -220,7 +220,7 @@ class TGCustomYield:
|
|||||||
|
|
||||||
offset += limit
|
offset += limit
|
||||||
|
|
||||||
r = await media_session.send(
|
r = await media_session.invoke(
|
||||||
raw.functions.upload.GetFile(
|
raw.functions.upload.GetFile(
|
||||||
location=location,
|
location=location,
|
||||||
offset=offset,
|
offset=offset,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
pyrogram>=2.0.0,<=2.0.26
|
pyrogram>=2.0.0,<=2.0.30
|
||||||
tgcrypto<=1.2.3
|
tgcrypto<=1.2.3
|
||||||
aiohttp<=3.8.1
|
aiohttp<=3.8.1
|
||||||
python-dotenv<=0.20.0
|
python-dotenv<=0.20.0
|
||||||
|
|||||||
Reference in New Issue
Block a user