Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: get_dialogs() got an unexpected keyword argument 'pinned_only' #64

Open
grdll opened this issue Aug 2, 2023 · 2 comments
Open

Comments

@grdll
Copy link

grdll commented Aug 2, 2023

pip3 show pyrogram

Name: Pyrogram
Version: 2.0.106
Traceback (most recent call last):
  File "/root/telegram-delete-all-messages/cleaner.py", line 154, in <module>
    deleter.select_groups()
  File "/root/telegram-delete-all-messages/cleaner.py", line 67, in select_groups
    chats = self.get_all_chats()
  File "/root/telegram-delete-all-messages/cleaner.py", line 57, in get_all_chats
    dialogs = app.get_dialogs(pinned_only=True)
  File "/usr/local/lib/python3.9/site-packages/pyrogram/sync.py", line 53, in async_to_sync_wrap
    coroutine = function(*args, **kwargs)
TypeError: get_dialogs() got an unexpected keyword argument 'pinned_only'

#53 #62

@FFFcat
Copy link

FFFcat commented Aug 2, 2023

above version 2.0 the project pyrogram has remove this parameter in function get_dialogs. You can read the document to achieve your demand such as filter. And this project use version 1.4, it's not wrong.

@ThoBekMic
Copy link

above version 2.0 the project pyrogram has remove this parameter in function get_dialogs. You can read the document to achieve your demand such as filter. And this project use version 1.4, it's not wrong.

The project now requires Pyrogram v2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants