Skip to content

Prior Knowledge

Why doesn't my code work??

Many errors occur when people with no prior Python experience attempt to write their first project.

from aiogram import Bot

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR!
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'aiogram'

Aiogram is a highly specialized library that involves complex concepts, making it unsuitable for starting your Python journey.

What do I absolutely need to know?

  • - absolutely necessary
  • - would be a great addition

  • variables
  • functions
  • conditionals
  • loops
  • exceptions
  • OOP
  • testing
  • venv
  • decorators
  • async

Most of those topics are covered at CS50p course. It's absolutely free to take and has some great problem sets.

You would at least need to get a basic understanding of testing, venv, decorators and async.

Asking questions

You've taken a look at everything above, started working on your first bot and encoutered some difficulties that you can't deal with?

Before asking for help, consider googling first, whether through search engines or the aiogram chat.

Also, documentation has proved to be very helpful, don't forget to take a look!

If you're convinced your issue is unique and hasn't been addressed before, please avoid meta in the chat.

Choose an appropriate chat topic and provide a MRE along with your error traceback or an explanation of unwanted behaviour.

Just a quick reminder

Please remember to be polite to those who are assisting you. It's not advisable to send private messages asking about your errors or providing your entire code for review. Those people usually get tons of messages like that and simply have no time to answer them. Instead, communicate through the chat or consider purchasing a private consultation if available.