KurimuzonAkuma / pyrogram

Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
https://pyrogram.org
GNU Lesser General Public License v3.0
267 stars 72 forks source link

impl non-blocking TCP connection #71

Closed deus-developer closed 1 month ago

deus-developer commented 1 month ago

TCP connection has been redesigned for non-blocking socket connection. The public API of the methods has not been changed, but TCP.socket has been removed. Added the Proxy type for proxy connection settings.

Also connection_factory and protocol_factory have been added to the Client.

eyMarv commented 1 month ago

Exactly what we needed, with telegram's recent downtimes/lags! Congratulations. 🎉