Answer the question
In order to leave comments, you need to log in
Where is the error in the bot code?
from config import TOKEN
import logging
from aiogram import Bot, Dispatcher,executor, types
bot= Bot(token=TOKEN)
dp = Dispatcher(bot)
@dp.message_handler(commands=[`start`])
async def process_hello(message: types.message):
await bot.send_message(message.from_user.id, `Добрый день `)
if __name__ == `__main__`:
executor.start_polling(dp, skip_updates=True)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question