Closed AsdertyTreds closed 4 months ago
why is he not in env, but in app/core/settings/bot_settings.py
@AsdertyTreds , i assume that the process of working with a class is more efficient - we load it into memory only once and work within the context of the entire application. On the other hand, for .env, we will need to read the user_id each time.
Also, in my opinion, .envy is meant for truly sensitive information - in our case, tokens (for which we use Pydantic for secure reading), the user_id is not such sensitive data.
I plan to update the documentation to clearly explain what and where the bot's configuration script create, and where each setting is stored.
I agree if it's a single user bot
in the setup it asks for an USER ID, but it is not registered in the env