-2

I was writing a bot and I was dealing with this problem. Who knows how to fix it?

enter image description here

from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.types import message
from aiogram.utils import executor

import os


bot = Bot(token=os.getenv('TOKEN'))
dp = Dispatcher(bot)

#clien
@dp.message_handler(commands = ['start', 'help'])
async def commands_start(massage : types.message):
    await bot.send_message(message.from_user.id, "Hello, who are you?")





executor.start_polling(dp, skip_updates=True)

1 Answers1

1

async def commands_start(massage : types.message): seems to use "massage" instead of "message", try fixing that and see if it works

Ryan Millares
  • 525
  • 4
  • 16