Делал бота на VKBottle.
Сначала он не находил сертификат, а теперь получает какой-то аргумент
error_subcode.
Код:
import json
from vkbottle.bot import Bot, Message
from vkbottle import VKAPIError
direct_file = 'E:/work/VkBot/WNLF_Creators'
token = json.load(open(f'{direct_file}/JSON/token.json'))['token vk']['main_bot']
bot = Bot(token=token)
@bot.on.message()
async def echo(msg: Message):
try:
await msg.answer(msg.text)
except VKAPIError as e:
print(f"VK API Error: {e}")
if __name__ == '__main__':
bot.run_forever()
Выводит:
TypeError: VKAPIError.__init__() got an unexpected keyword argument 'error_subcode'