Watch this for a full visual walkthrough of setting up aiogram v3
Please open Telegram to view this post
VIEW IN TELEGRAM
Get the echo bot running then extend it:
from datetime import datetime
@dp.message(Command("time"))
async def time_handler(message: Message):
now = datetime.now().strftime("%H:%M:%S")
await message.answer(f"Current time: {now}")
from aiogram.filters import F
@dp.message(F.text)
async def echo_handler(message: Message):
await message.answer(message.text)
Test all commands, screenshot the responses from your actual bot
Please open Telegram to view this post
VIEW IN TELEGRAM