S
S
Sergey2021-03-11 19:42:25
Bots
Sergey, 2021-03-11 19:42:25

How to download all files from a telegram group after adding a bot to it?

I want to write a bot in a telegram, which, when you add it to a group, downloads all the files from this group on the PC from which it is launched.
For example:
"User 1 sent a video file"
"User 2 sent an audio file"
"Bot joined the conversation"
After that, the bot downloaded both the video file and the audio file to the computer from which it is running.
Bota initially wanted to write on pytelegrambotapi, but if I need another library, I will download it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur Boyko, 2021-03-11
@klardak

I may be wrong, but for this you seem to need to use the Telegram API, and not the Telegram Bot API. Through the bots API, you can download only those files that were sent after the bot was added to the chat.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question