Skip to content

AttributeError: module 'hydrogram.errors' has no attribute 'FloodPremiumWait' #60

@KingRotiv

Description

@KingRotiv

Checklist

  • I am sure the error is coming from Hydrogram's code and not elsewhere
  • I have searched in the issue tracker for similar bug reports, including closed ones
  • I ran pip3 install -U https://github.com/hydrogram/hydrogram/archive/dev.zip and reproduced the issue using the latest development version

Description

When sending a sequence of videos to a chat, after some time this exception is returned to me.

Steps to reproduce

Just send multiple videos in sequence until you are limited by the Telegram API.

Code example

No response

Logs

File "C:\Users\kingr\AppData\Roaming\uv\tools\tg-tools\Lib\site-packages\hydrogram\errors\rpc_error.py", line 98, in raise_it
    raise getattr(import_module("hydrogram.errors"), exceptions[error_code][error_id])(
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'hydrogram.errors' has no attribute 'FloodPremiumWait'
module 'hydrogram.errors' has no attribute 'FloodPremiumWait'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions