Использую токен пользователя а не группы,не понимаю почему не работает
Вот ошибка
vkbottle.exception_factory.code_exception.VKAPIError_15: Access denied: no access to this chat
Вот сама часть кода
@bot.on.message(text=["!fadd <mention>"])
async def force_add_user(message: Message, mention: str = None):
access_level = get_user_access_level(message.from_id)
if access_level < 2:
await message.answer("⚠ Недостаточно прав! ")
return
if mention is None:
await message.answer("!fadd @user")
return
user_id = int(mention.split('|')[0].replace('[id', ''))
user_info = await bot.api.users.get(user_ids=user_id)
user_name_kicker_info = await bot.api.users.get(user_ids=message.from_id)
user_name_kicker = f"{user_name_kicker_info[0].first_name} {user_name_kicker_info[0].last_name}"
user_name_kicked = f"{user_info[0].first_name} {user_info[0].last_name}"
log_message = f"{user_name_kicker} добавил {user_name_kicked}"
await second_bot.api.messages.add_chat_user(message.peer_id - 2000000000, user_id)
await message.answer(log_message)