[Question] Download user's file
ingria opened this issue · comments
ingria commented
Is there any way to save on disk the file (image, audio, etc), sent by a user?
Example: some user sends a cute kitten photo to my bot, and i'd like to save that image to /home/robot/cat.jpg
. Is it possible?
Rock Neurotiko commented
Sure, check the plugins/download_media.lua
plugin.
Remember that this bot don't work with the API bots, works with tg, with the API (aka, bots created with BotFather) you can't download them.
ingria commented
Thanks 👍
Seems like exactly what I need