A
A
andrew462020-07-31 20:51:12
Django
andrew46, 2020-07-31 20:51:12

Is it possible to tie aiogram to Django?

I am writing a telegram bot on aiogram and I want to attach the Django admin panel to it. Is it possible to do this and if so, how? Maybe someone has already done this and can share their experience, or throw off a link to the repository.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-07-31
@bacon

Make the bot loop inside the custom django-admin commands https://docs.djangoproject.com/en/3.0/howto/custom...
It's not clear why aiogram is the basis, for it you must first understand asyncio well. If you do not understand this, take the synchronous library.
PS They will take a look at the history, there are a lot of incomprehensible newcomers there who advised aiogram.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question