telegram-bot icon indicating copy to clipboard operation
telegram-bot copied to clipboard

[question] file infos (name size)

Open tguser13 opened this issue 10 years ago • 0 comments

How can I get the name/size of a file without download it first? I want to let the bot download just some files.

Tried to edit the plugin https://github.com/yagop/telegram-bot/blob/master/plugins/download_media.lua but non of the variables contain the name. tg shows something like >>> [image name.jpg: type=image/jpeg size=123x123 size=123KiB] How can I catch these infos?

tguser13 avatar Jul 19 '15 15:07 tguser13