yagop / telegram-bot

UNMAINTAINED - A Telegram Bot based on plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Download user's file

ingria opened this issue · comments

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?

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.

Thanks 👍
Seems like exactly what I need