I
I
Ilya2021-10-28 23:55:41
Telegram
Ilya, 2021-10-28 23:55:41

How to save files in aiogram Python?

I would like to know how to download all media files that a Telegram user sends to the aiogram bot?
Are there ways to download to the folder where the script is running?. Is it possible to send files by command (in the comments), let's say the user sent a photo, with the comment "Save photo", he saves, without a comment, does not save.

Its purpose: to save .mp4 files.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-10-29
@stead

> I would like to know how
Read the docks on aiogram. To get started Quick Start . Then you realize how to use filters to process different incoming messages. When you realize - you look towards ContentTypeFilter and look for examples of its use.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question