Я недавно начал изучать роботу с тг ботами с помощью Python и, дойдя до библиотеки aiogram, я столкнулся с проблемой, что все обучающие материалы используют старую версию этой библиотеки, из за чего обучение становиться проблематичным, поэтому прошу вас помочь
Вот мой код:
from aiogram.filters.command import Command
from aiogram.types.web_app_info import WebAppInfo
bot = Bot(token="MY_Token")
dp = Dispatcher()
@dp.message(Command("start"))
async def start(message: types.Message):
markup = types.ReplyKeyboardMarkup(resize_keyboard=True)
button = types.KeyboardButton("Открыть страницу", web_app=WebAppInfo(url="
https://www.avito.ru/"))
markup.add(button)
await message.answer("Hello!", reply_markup=markup)
async def main():
await dp.start_polling(bot)
if __name__ == "__main__":
asyncio.run(main())