Replies: 1 comment
-
You should pass types.ChatPermissions object. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there,
Could you please explain how to pass permission parameter to set_chat_permissions method.
I have tried below code but it returns an error.
bot.set_chat_permissions(message.chat.id, {"can_send_messages":False})
and this one as well
bot.set_chat_permissions(message.chat.id, ("can_send_messages", False))
Beta Was this translation helpful? Give feedback.
All reactions