About the License

https://www.gnu.org/graphics/lgplv3-with-text-154x68.png

Pyrogram is free software and is currently licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+). In short: you may use, redistribute and/or modify it provided that modifications are described and licensed for free under LGPLv3+.

In other words: you can use and integrate Pyrogram into your own code — either open source, under the same or a different license, or even proprietary — without being required to release the source code of your own applications. However, any modifications to the library itself are required to be published for free under the same LGPLv3+ license.