Skip to content

tgcalls v1.0.0. First stable release — Telethon support, ability to implement custom MTProto bridges and more

Compare
Choose a tag to compare
@MarshalX MarshalX released this 19 Aug 19:34
· 54 commits to main since this release
fef5bc1

Introduce

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.

New way to create GroupCall instances

Now we have one class called GroupCallFactory to create GroupCall instances of any types. You can find examples of new way in this discussion: #101

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 ❤️