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

Some groups are listed twice #56

Open
ilovelinux opened this issue Jan 1, 2023 · 1 comment
Open

Some groups are listed twice #56

ilovelinux opened this issue Jan 1, 2023 · 1 comment

Comments

@ilovelinux
Copy link

ilovelinux commented Jan 1, 2023

Example:

Delete all your messages in
  [...]
  19. Sci⛷🚠
  [...]
  22. Sci⛷🚠
  [...]
  163. Birthday group
  164. Birthday group
  [...]
  170. Friends group
  [...]
  185. Friends group
  186. EP 2016
  187. EP 2016

I confirm that I any of that groups has a duplicate with the same name.

Maybe related to #16

@ilovelinux
Copy link
Author

It looks like it's an issue with chats that have been converted to supergroups.

Printing:

for i, group in enumerate(groups):
    print(f'  {i+1}. {group.title} {group}')

Output:

  186. EP 2016 {
    "_": "Chat",
    "id": -100XXXXXXXXXX,
    "type": "supergroup",
    "is_verified": false,
    "is_restricted": false,
    "is_creator": false,
    "is_scam": false,
    "is_fake": false,
    "title": "EP 2016",
    "has_protected_content": false,
    "members_count": 4,
    "permissions": {
        "_": "ChatPermissions",
        "can_send_messages": true,
        "can_send_media_messages": true,
        "can_send_other_messages": true,
        "can_send_polls": true,
        "can_add_web_page_previews": true,
        "can_change_info": false,
        "can_invite_users": true,
        "can_pin_messages": false
    }
}
  187. EP 2016 {
    "_": "Chat",
    "id": -13XXXXXX,
    "type": "group",
    "is_creator": false,
    "title": "EP 2016",
    "has_protected_content": false,
    "members_count": 0
}

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

1 participant