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

client.unban_chat_member missing Create topics restrictions #116

Open
3 tasks done
NimaQu opened this issue Dec 13, 2024 · 0 comments
Open
3 tasks done

client.unban_chat_member missing Create topics restrictions #116

NimaQu opened this issue Dec 13, 2024 · 0 comments

Comments

@NimaQu
Copy link

NimaQu commented Dec 13, 2024

Checklist

  • I am sure the error is coming from Pyrogram's code and not elsewhere
  • I have searched in the issue tracker for similar bug reports, including closed ones
  • I ran pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zip and reproduced the issue using the latest development version

Description

await client.ban_chat_member(chat_id, user_id) result:

changed restrictions for --- indefinitely

−Send stickers & GIFs
−Embed links
−Send polls
−Change info
−Add users
−Pin messages
−Create topics
−Send photos
−Send video files
−Send video messages
−Send music
−Send voice messages
−Send files
−Send messages

await client.unban_chat_member(chat_id, user_id) result:

changed restrictions for --- indefinitely

+Send stickers & GIFs
+Embed links
+Send polls
+Change info
+Add users
+Pin messages
+Send photos
+Send video files
+Send video messages
+Send music
+Send voice messages
+Send files
+Send messages

missing Create topics here, causing the the user to stay in the exceptions list

image

Steps to reproduce

ban then unban

Code example

await client.ban_chat_member(chat_id, user_id)
await asyncio.sleep(1)
await client.unban_chat_member(chat_id, user_id)

Logs

No response

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