Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Checklist
pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zipand reproduced the issue using the latest development version.Description
Currently Pyrogram, for each update received, calls different methods to provide some additional information. However, in accounts with many active chats, and therefore many messages received, it is easy for this to lead to floodwait of these methods, particularly GetMessages.
Proposed solution
A
get_additional_infoparameter in the Client object, which is True by default, and if set to False disables obtaining additional information by calling methods when receiving updates