Closed dpogibenko closed 1 year ago
Hi @dpogibenko, I'm really sorry for the really late answer, but things happened and I only just now managed to check this issue.
I just pushed the fix (fabc7ad), it is now available in the latest version of Echotron, v3.27.0
.
Thanks for the heads up!
Hello! I've faced a problem with applying user permissions. Function
restrictChatMember
from api.go uses functionserializePerms
where structChatPermissions
is wrapped withPermissionOptions
.Output looks like this and such representation is ignored by telegram server:
permissions={"permissions":{"can_send_messages":true}}
If I change code so ChatPermissions isn't wrapped it works well:
permissions={"can_send_messages":true}
This code doesn't work for me:
And this works:
Is it bug or my mistake?