%global _empty_manifest_terminate_build 0 Name: python-Pyrogram Version: 2.0.103 Release: 1 Summary: Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots License: LGPLv3 URL: https://github.com/pyrogram Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f5/32/460a1cc4ef152d7eb3bf927542154fdfef7dec70979c690c08b479104478/Pyrogram-2.0.103.tar.gz BuildArch: noarch Requires: python3-pyaes Requires: python3-pysocks %description

Pyrogram
Telegram MTProto API Framework for Python
Homepage Documentation Releases News

## Pyrogram > Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots ``` python from pyrogram import Client, filters app = Client("my_account") @app.on_message(filters.private) async def hello(client, message): await message.reply("Hello from Pyrogram!") app.run() ``` **Pyrogram** is a modern, elegant and asynchronous [MTProto API](https://docs.pyrogram.org/topics/mtproto-vs-botapi) framework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot identity (bot API alternative) using Python. ### Support If you'd like to support Pyrogram, you can consider: - [Become a GitHub sponsor](https://github.com/sponsors/delivrance). - [Become a LiberaPay patron](https://liberapay.com/delivrance). - [Become an OpenCollective backer](https://opencollective.com/pyrogram). ### Key Features - **Ready**: Install Pyrogram with pip and start building your applications right away. - **Easy**: Makes the Telegram API simple and intuitive, while still allowing advanced usages. - **Elegant**: Low-level details are abstracted and re-presented in a more convenient way. - **Fast**: Boosted up by [TgCrypto](https://github.com/pyrogram/tgcrypto), a high-performance cryptography library written in C. - **Type-hinted**: Types and methods are all type-hinted, enabling excellent editor support. - **Async**: Fully asynchronous (also usable synchronously if wanted, for convenience). - **Powerful**: Full access to Telegram's API to execute any official client action and more. ### Installing ``` bash pip3 install pyrogram ``` ### Resources - Check out the docs at https://docs.pyrogram.org to learn more about Pyrogram, get started right away and discover more in-depth material for building your client applications. - Join the official channel at https://t.me/pyrogram and stay tuned for news, updates and announcements. %package -n python3-Pyrogram Summary: Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots Provides: python-Pyrogram BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-Pyrogram

Pyrogram
Telegram MTProto API Framework for Python
Homepage Documentation Releases News

## Pyrogram > Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots ``` python from pyrogram import Client, filters app = Client("my_account") @app.on_message(filters.private) async def hello(client, message): await message.reply("Hello from Pyrogram!") app.run() ``` **Pyrogram** is a modern, elegant and asynchronous [MTProto API](https://docs.pyrogram.org/topics/mtproto-vs-botapi) framework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot identity (bot API alternative) using Python. ### Support If you'd like to support Pyrogram, you can consider: - [Become a GitHub sponsor](https://github.com/sponsors/delivrance). - [Become a LiberaPay patron](https://liberapay.com/delivrance). - [Become an OpenCollective backer](https://opencollective.com/pyrogram). ### Key Features - **Ready**: Install Pyrogram with pip and start building your applications right away. - **Easy**: Makes the Telegram API simple and intuitive, while still allowing advanced usages. - **Elegant**: Low-level details are abstracted and re-presented in a more convenient way. - **Fast**: Boosted up by [TgCrypto](https://github.com/pyrogram/tgcrypto), a high-performance cryptography library written in C. - **Type-hinted**: Types and methods are all type-hinted, enabling excellent editor support. - **Async**: Fully asynchronous (also usable synchronously if wanted, for convenience). - **Powerful**: Full access to Telegram's API to execute any official client action and more. ### Installing ``` bash pip3 install pyrogram ``` ### Resources - Check out the docs at https://docs.pyrogram.org to learn more about Pyrogram, get started right away and discover more in-depth material for building your client applications. - Join the official channel at https://t.me/pyrogram and stay tuned for news, updates and announcements. %package help Summary: Development documents and examples for Pyrogram Provides: python3-Pyrogram-doc %description help

Pyrogram
Telegram MTProto API Framework for Python
Homepage Documentation Releases News

## Pyrogram > Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots ``` python from pyrogram import Client, filters app = Client("my_account") @app.on_message(filters.private) async def hello(client, message): await message.reply("Hello from Pyrogram!") app.run() ``` **Pyrogram** is a modern, elegant and asynchronous [MTProto API](https://docs.pyrogram.org/topics/mtproto-vs-botapi) framework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot identity (bot API alternative) using Python. ### Support If you'd like to support Pyrogram, you can consider: - [Become a GitHub sponsor](https://github.com/sponsors/delivrance). - [Become a LiberaPay patron](https://liberapay.com/delivrance). - [Become an OpenCollective backer](https://opencollective.com/pyrogram). ### Key Features - **Ready**: Install Pyrogram with pip and start building your applications right away. - **Easy**: Makes the Telegram API simple and intuitive, while still allowing advanced usages. - **Elegant**: Low-level details are abstracted and re-presented in a more convenient way. - **Fast**: Boosted up by [TgCrypto](https://github.com/pyrogram/tgcrypto), a high-performance cryptography library written in C. - **Type-hinted**: Types and methods are all type-hinted, enabling excellent editor support. - **Async**: Fully asynchronous (also usable synchronously if wanted, for convenience). - **Powerful**: Full access to Telegram's API to execute any official client action and more. ### Installing ``` bash pip3 install pyrogram ``` ### Resources - Check out the docs at https://docs.pyrogram.org to learn more about Pyrogram, get started right away and discover more in-depth material for building your client applications. - Join the official channel at https://t.me/pyrogram and stay tuned for news, updates and announcements. %prep %autosetup -n Pyrogram-2.0.103 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-Pyrogram -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Mon Apr 10 2023 Python_Bot - 2.0.103-1 - Package Spec generated