Mayuri-Chan / pyrofork

Pyrogram fork with Adjustable web page preview, Quote Reply, Story & Topics Support, Mongodb session storage, and much more. go to https://pyrofork.mayuri.my.id/ for documentation.
https://pyrofork.mayuri.my.id
GNU Lesser General Public License v3.0
107 stars 55 forks source link

Premium FLOOD WAIT ERROR ✓✓ #72

Open MrBoss215 opened 1 month ago

MrBoss215 commented 1 month ago

Checklist

Description

Steps to reproduce

1

Code example

from Pyrogram import Client
import time

bot = Client(api_id=API, api_hash=HASH, bot_token=TOKEN)

userbot = Client(api_id=API, api_hash=HASH, string_session=SESSION)

userbot.run()
bot.run()

#sending media
@bot.on_message(filters.text)
async def media_dl_trst(client, message):
    # total_size = 300MB
    await userbot.download_media(message=message, progress=progress_for_pyrogram,progress_args=("Dᴏᴡɴʟᴏᴀᴅing...", ms, time.time()))

# path download size 30MB Why 
# Path Downloaded but error come & size downloaded 30MB BUT TOTAL Size 300MB
# Premium Flood Wait ✓

Logs

[ERROR/2024-06-10 00:48:32,509] pyrogram.client: Telegram says: [420 FLOOD_PREMIUM_WAIT_X] - A wait of 15 seconds is required (caused by "upload.GetFile")2024-06-10T00:48:32.510368+00:00 app[.1]: Traceback (most recent call last):2024-06-10T00:48:32.510368+00:00 app[.1]: File "/app/.heroku/python/lib/python3.12/site-packages/pyrogram/client.py", line 1007, in get_file2024-06-10T00:48:32.510369+00:00 app[.1]: r = await session.invoke(2024-06-10T00:48:32.510369+00:00 app[.1]: ^^^^^^^^^^^^^^^^^^^^^2024-06-10T00:48:32.510369+00:00 app[.1]: File "/app/.heroku/python/lib/python3.12/site-packages/pyrogram/session/session.py", line 407, in invoke2024-06-10T00:48:32.510370+00:00 ]: return await self.send(query, timeout=timeout)2024-06-10T00:48:32.510370+00:00 app[.1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^2024-06-10T00:48:32.510370+00:00 app[ File "/app/.heroku/python/lib/python3.12/site-packages/pyrogram/session/session.py", line 364, in send2024-06-10T00:48:32.510371+00:00  RPCError.raise_it(result, type(data))2024-06- File "/app/.heroku/python/lib/python3.12/site-packages/pyrogram/errors/rpc_error.py", line 92, in raise_it raise getattr pyrogram.errors.exceptions.flood_420.FloodPremiumWait: Telegram says: [420 FLOOD_PREMIUM_WAIT_X] - A wait of 15 seconds is required (caused by "upload.GetFile")
pawanyadav commented 3 weeks ago

facing same issue, i tried different account also