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

messages.changeConversationMemberRestrictions #1610

Closed
ivanmem opened this issue Feb 22, 2024 · 1 comment
Closed

messages.changeConversationMemberRestrictions #1610

ivanmem opened this issue Feb 22, 2024 · 1 comment
Assignees
Labels
Задача Задача требующая реализации нового или доработке существующего функционала
Milestone

Comments

@ivanmem
Copy link
Contributor

ivanmem commented Feb 22, 2024

https://api.vk.com/method/messages.changeConversationMemberRestrictions?v=5.226&client_id=6287487
ВК добавили возможность мутить пользователей в чате. Можно делать запрос от имени администратора чата или бота.
Параметры:

peer_id - id чата
member_ids - idшники пользователей через запятую
for - время в секундах
action: ro - наложить мут
action: rw - снять мут

Пример наложения мута на 24 часа:

peer_id:  2000000100
member_ids: 176444700
for: 86400
action: ro

Если нужно замутить навсегда, то for указывать не нужно.

Пример снятия мута:

peer_id: 2000000100
member_ids: 176444700
action: rw
@inyutin-maxim inyutin-maxim self-assigned this Mar 6, 2024
@inyutin-maxim inyutin-maxim added the Задача Задача требующая реализации нового или доработке существующего функционала label Mar 6, 2024
@inyutin-maxim inyutin-maxim added this to the v1.79.0 milestone Mar 6, 2024
inyutin-maxim pushed a commit that referenced this issue Mar 14, 2024
…1610) (#1612)

#1610

## Список изменений
- Добавлена поддержка метода
messages.changeConversationMemberRestrictions

##### Обязательно выполните следующие пункты:
- [x] Проверьте что ваш код не содержит конфликтов, и исправьте их по
необходимости
- [x] Напишите тесты, и обязательно проверьте что не падают другие.

##### Внимание! Pull Request'ы с непройденными тестами не принимаются
xiadosw added a commit to xiadosw/vk that referenced this issue Mar 15, 2024
inyutin-maxim pushed a commit that referenced this issue Mar 15, 2024
## Список изменений
- Исправлена ошибка с неуказанным For параметром (бесконечный мут)
- Добавлены тесты

##### Обязательно выполните следующие пункты:
- [x] Проверьте что ваш код не содержит конфликтов, и исправьте их по
необходимости
- [x] Напишите тесты, и обязательно проверьте что не падают другие.

##### Внимание! Pull Request'ы с непройденными тестами не принимаются
@ivanmem
Copy link
Contributor Author

ivanmem commented Mar 21, 2024

#1612

@ivanmem ivanmem closed this as completed Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Задача Задача требующая реализации нового или доработке существующего функционала
Projects
None yet
Development

No branches or pull requests

2 participants