A
A
Anna Ferrier2021-06-18 14:27:36
Python
Anna Ferrier, 2021-06-18 14:27:36

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

1 answer(s)
M
MrPipka, 2021-06-18
@Mixamixamaxa

No token

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question