11 ответов

12 просмотров

and if you go that route, there are other stuff you'll have to take care of: Use this method to get basic info about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. On success, a File object is returned. The file can then be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>, where <file_path> is taken from the response. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile again.

I'm used file_id Instead of the link to the file within the channel telegram

Lord unreal4u X
I did not understand this. Can you reformulate the...

bot('senddocument',[ 'chat_id'=>$chat_id, 'document'=>'https://t.me/BotListChat/386257'}); I want delete the channel and use file_id bot('senddocument',[ 'chat_id'=>$chat_id, 'document'=>'BQACAgQAAxkBAAEIS15iL0pThKTsdkrXnPF0Om9Ztna6UQACkREAAl3fYFFdo9zey-trGiME'});

I don't think the file_id expires, as long as the file is still on Telegram's servers... I don't know how Telegram's servers do operate, but I would adopt a scheme to check how many references a file still has before deleting it. This means that if the channel is deleted and the file wasn't present on any other chat_id, it will be deleted together with the channel... BUT BIG DISCLAIMER: this is how I imagine it works, I really really don't know if that is the case

i can do that now for science sake

Kr🇫🇷🦜 zwan
i can do that now for science sake

oh that would be nice, I'm actually curious now haha

Lord unreal4u X
and if you go that route, there are other stuff yo...

But why should I download this file? Or better: what is it this file?

Похожие вопросы

Обсуждают сегодня

есть спецы по гитлабу? нужно решить проблему того, что гитлаб не показывает файлы с расширением txt в артефактах и предлагает их скачать и смотреть локально. а это неудобно. в...
Aleksandr Druzhinin
1
Эх кто-то пришел и весь праздник испортил :( You need complex FBX scene importing setup to change things on import? good luck with that. You need navigation and pathfinding? g...
Serg Gini
5
Здравствуйте. Есть спецы на языке D ? Есть проект (торговый бот) нужна долгосрочная поддержка на материальной основе) (достойная оплата) Подробности в лс.
6h123 6h123
1
как работают все эти прокси онлайн, где ты можешь ввести сайт и он зайдет на сайт от своего имени?
Aleksandr Druzhinin
1
День добрый. Стандартная библиотека phobos (std.array) ссылается на внешнюю фунцию _d_newarrayUTrace и при сборке с ключом profile-gc эта ссылка остаётся неопределённой. Никак...
slacker linuxoid
5
на D можно построить абсолютно разный архитект, как объектный, так и нет, оч широкий простор для принятия решений. Однако проблема в том, что большинство книг об айтишной архи...
Constantin_FV
1
Доброго времени суток. Сейчас я работаю над своей архитектурой Component / Systems. Если просто, это то что использовали до дробления на ECS. Потому что ECS это все таки нишев...
Vi
26
Для меня наследование это просто удобство ради удобства. Без множественного наследования, это бесполезная вещь, но удобная. С множественным наследованием, это опасная, но мощн...
Vi
1
а у нас кто-нибудь разбирается в матлаб? Накопал статью по замощению Фодерберга, о нём вообще мало инфы в сети. Но там матлабовский код, который нужно через песочницу по сути ...
Constantin_FV
1
string xczhojoxueaflfhhygcc ="xczhojoxueaflfhhygcc"; long xczhojoxueaflfhhygcc_2 =1368962155; import std.conv: text; writeln(text(xczhojoxueaflfhhygcc, " ", xczhojoxueaflfhhyg...
Constantin_FV
6
Карта сайта