I was getting started with telegram bots and I was wondering if there's a way to get a BOT to search through the files posted in a channel (and possibly download them, if the user asks for it).
For instance, if a BOT has a command "/search" and the user searches a file using certain keywords, then the BOT should answer with the requested file, if found on the channel, and it should also provide an internal link to download it.
I noticed that the APIs provide a getFile method that maybe could be useful in this case, I just wanted to know if this thing is achievable!
Hope I've made myself clear!