O
O
Oleg_3_w2021-03-07 23:50:07
Python
Oleg_3_w, 2021-03-07 23:50:07

How to upload a file to SQL via telegram bot on aiogram?

Please help me write a code to upload a file to SQL through the aiogram bot!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stefan, 2021-03-07
@Oleg_3_w

And what's the problem then? If you do not know how to act, then here's an algorithm for you:
1. Put a message handler on files;
2. In the handler function, you take the data from the file and write it to the database;
To the database, I hope you connected at least? If not, then just type in the name of your database + python in Google and follow the instructions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question