About the License¶
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 code (either open source, under the same or a different license, or even proprietary) for any purpose whatsoever without being required to release the source code of your applications. Derivative works, including modifications to the library itself can only be redistributed under the same LGPLv3+ license.