from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.utils import executor
TOKEN = "Token for you bot"
bot = Bot(token=TOKEN)
dp = Dispatcher(bot)

@dp.message_handler(command=['start', 'help'])
async def send_welcome(msg: types.Message):
    await msg.reply_to_message(f'Добро пожаловать,{msg.from_user.first_name}')

@dp.message_handler(content_types=['text'])
async def get_text_messages(msg: types.Message):
    if msg.text.lower() == 'привет':
        await msg.answer('Привет!')
    else:
        await msg.answer('Я не понимаю')

if __name__ == '__main__':
    executor.start_polling(dp)
[((5, 6, 5, 22), 'aiogram.Bot', 'Bot', (), '', False, 'from aiogram import Bot, types\n'), ((6, 5, 6, 20), 'aiogram.dispatcher.Dispatcher', 'Dispatcher', ({(6, 16, 6, 19): 'bot'}, {}), '(bot)', False, 'from aiogram.dispatcher import Dispatcher\n'), ((20, 4, 20, 30), 'aiogram.utils.executor.start_polling', 'executor.start_polling', ({(20, 27, 20, 29): 'dp'}, {}), '(dp)', False, 'from aiogram.utils import executor\n')]