Каждый раз выдает одну и ту же ошибку после того, как дело доходит до функций kartoxa и grecha
Task exception was never retrieved
future: exception=TypeError("to_python() missing 1 required positional argument: 'self'")>
Traceback (most recent call last):
File "C:\Users\Даня\AppData\Local\Programs\Python\Python38\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 388, in _process_polling_updates
for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
File "C:\Users\Даня\AppData\Local\Programs\Python\Python38\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 225, in process_updates
return await asyncio.gather(*tasks)
File "C:\Users\Даня\AppData\Local\Programs\Python\Python38\lib\site-packages\aiogram\dispatcher\handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "C:\Users\Даня\AppData\Local\Programs\Python\Python38\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 246, in process_update
return await self.message_handlers.notify(update.message)
File "C:\Users\Даня\AppData\Local\Programs\Python\Python38\lib\site-packages\aiogram\dispatcher\handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "C:\Users\Даня\bot\main.py", line 33, in kartoxa
await msg.answer("Уважаю",reply_markup=ReplyKeyboardRemove),
File "C:\Users\Даня\AppData\Local\Programs\Python\Python38\lib\site-packages\aiogram\types\message.py", line 339, in answer
return await self.bot.send_message(
File "C:\Users\Даня\AppData\Local\Programs\Python\Python38\lib\site-packages\aiogram\bot\bot.py", line 312, in send_message
reply_markup = prepare_arg(reply_markup)
File "C:\Users\Даня\AppData\Local\Programs\Python\Python38\lib\site-packages\aiogram\utils\payload.py", line 56, in prepare_arg
return json.dumps(_normalize(value))
File "C:\Users\Даня\AppData\Local\Programs\Python\Python38\lib\site-packages\aiogram\utils\payload.py", line 42, in _normalize
return obj.to_python()
TypeError: to_python() missing 1 required positional argument: 'self'
main.py:
import asyncio
from aiogram.types import ReplyKeyboardMarkup, KeyboardButton
from aiogram.types import ReplyKeyboardRemove
from aiogram import Bot, Dispatcher, executor, types
from config import BOT_TOKEN