mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Update get_users to use the refactored User type
This commit is contained in:
parent
6bc2db7157
commit
1873344467
1 changed files with 3 additions and 2 deletions
|
|
@ -16,8 +16,9 @@
|
|||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import pyrogram
|
||||
from pyrogram.api import functions
|
||||
from ...ext import BaseClient, utils
|
||||
from ...ext import BaseClient
|
||||
|
||||
|
||||
class GetUsers(BaseClient):
|
||||
|
|
@ -52,6 +53,6 @@ class GetUsers(BaseClient):
|
|||
users = []
|
||||
|
||||
for i in r:
|
||||
users.append(utils.parse_user(i))
|
||||
users.append(pyrogram.User.parse(self, i))
|
||||
|
||||
return users if is_iterable else users[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue