Код: Выделить всё
TOKEN_API = "1"
from aiogram import Bot, Dispatcher, types, executor
bot = Bot(token="TOKEN_API")
dp = Dispatcher(bot)
@dp.message_handler(commands=["start"])
async def send_random_letter(message : types.Message):
await message.answer("hi,print /generate_pictures, to start")
Код: Выделить всё
dp = Dispatcher(bot)
^^^^^^^^^^^^^^^
TypeError: Dispatcher.__init__() takes 1 positional argument, but 2 were given
Я только начал и не знаю, что написать.
Подробнее здесь: https://stackoverflow.com/questions/772 ... were-given