Skip to content

Add new chat admin permission constants#40

Open
alexeipanov wants to merge 1 commit into
BushlanovDev:masterfrom
alexeipanov:fix/permissions
Open

Add new chat admin permission constants#40
alexeipanov wants to merge 1 commit into
BushlanovDev:masterfrom
alexeipanov:fix/permissions

Conversation

@alexeipanov

Copy link
Copy Markdown

похоже, появились новые пермишены, и getAdmins() падает, когда в ответе они появляются.
https://dev.max.ru/docs-api/objects/ChatMember

$ curl -X GET "https://platform-api2.max.ru/chats/-76771840195654/members/admins" \
 -H "Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

{"members":[{"last_access_time":1784659950640,"is_owner":true,"is_admin":true,"join_time":1783685217643,"permissions":["write","edit_link","add_admins","change_chat_info","pin_message","add_remove_members","can_call","read_all_messages","delete","edit","view_stats"], ...

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

Successfully merging this pull request may close these issues.

1 participant