Traceback (most recent call last):
File "main.py", line 3, in <module>
from aiogram.types import ParseMode, InlineKeyboardButton, InlineKeyboardMarkup
ImportError: cannot import name 'ParseMode' from 'aiogram.types' (/home/runner/YouUp-Community-Verification-Bot/.pythonlibs/lib/python3.10/site-packages/aiogram/types/___init__.py)
This is a test code where we have removed personal data.
Error:
File "main.py", line 3, in <module>
from aiogram.types import ParseMode, InlineKeyboardButton, InlineKeyboardMarkup
ImportError: cannot import name 'ParseMode' from 'alogram.types'
Remove everything that have ParseMode from your code.
So, start by removing from your import
from aiogram.types import ParseMode, InlineKeyboardButton, InlineKeyboardMarkup #remove the parsemode
Replace all the instances in your code where you’ve used ParseMode.MARKDOWN or ParseMode.MARKDOWNV2 with the string values 'Markdown' or 'MarkdownV2' respectively.