Hello! I have a problem with restrictChatMember. I use it

with all the parameters set to false. In private group it works ok. But in public group can_send_messages and can_invite_users remain turned on, restricted user can send messages! She can not send media or stickers, but can send text messages!

restrictChatMember returns true, bot has Ban users permission. What do I do wrong?

console.log(await this.bot.restrictChatMember(chat.id, '' + user_id, {
can_add_web_page_previews: false,
can_change_info: false,
can_invite_users: false,
can_pin_messages: false,
can_send_media_messages: false,
can_send_messages: false,
can_send_other_messages: false,
can_send_polls: false,
until_date: (+new Date()) / 1000 + time
}));

1 ответов

14 просмотров

Try giving change info permission also to bot 🤔

Похожие вопросы

Карта сайта