🔥 Burn Fat Fast. Discover How! 💪

First stable release — Telethon support, ability to implement | tgcalls

First stable release — Telethon support, ability to implement custom MTProto bridges and more

Introduce

All libraries were updated to 1.0.0 version. Now pytgcalls supports both the most popular MTProto clients! Pyrogram and Telethon

Starting from 1.0.0 you are able to implement your own MTProto bridges as easy as you wish!

New installing options

Starting from installing the library, you need to choose with which client you will work.

For Pyrogram: pip3 install pytgcalls[pyrogram]
For Telethon: pip3 install pytgcalls[telethon]

Of course, you can manually install requires, but please pay your attention to minimal required version of these libs.

FAQ

Q: Will previous code base work with new version of library?
A: Everything is individual. I made backward compatibility for the old code, which will notify the user about outdated ways of creating instances, but this will not save you from dirty hacks that could be used in your code.

Q: How to use this library with Telethon?
A: We already have a code snippet in the main README file. Also, we have pretty and simple examples what works with Telethon too!

Q: What was done in this version?
A: In this version was optimized requests to MTProto, reworked system of connection, reconnection and disconnection. Now you can stop connection at any time and so on. Was added working with default_join_as value. Was fixed several bugs.

Happy coding