Comments (8)
See Release 2.2.0 and official docs
from api.
or you want additional method downloadFile()
?
from api.
Yes additional downloadFile() method. Now I can only get the url by getFile() method. But need somehow integrated efficient way. Then there will be no need to write a separate download script. I saw same additional download feature in python libraries. Thank you for quick reply.
e.g:
$file = $bot->getFile($fileId);
$file->download(path/to/my/server/filename);
from api.
Implemented in 2.2.1. Now you can get the file's contents via downloadFile($fileId)
, but how to store the contents is not a problem of this library. I'm reccomend use Flysystem.
from api.
Ilya, I couldn't find downloadFile($fileId) method in the latest commits or am I missing something?
Thank you for Flysystem recommendation. I will definitely check it out.
from api.
Just set your composer.json:
"require": {
"telegram-bot/api": ">=2.2.1"
},
or:
"require": {
"telegram-bot/api": "dev-master"
}
from api.
Sorry, it's my fail. I forgot to do a push. Fixed
from api.
Ok it works now. Thank you.
from api.
Related Issues (20)
- Allow to use `attach://<file_attach_name>` syntax inside sendMediaGroup HOT 3
- Как отправить сообщение с кирилицей? HOT 1
- Bot
- Can't Instantiate UserProfilePhotos HOT 1
- Не работает кнопка запроса номера телефона из телеграм бота. HOT 3
- Creating a Channel Invite Link with a Bot HOT 5
- Support chat_member and my_chat_member update
- No description provided.
- how to use ForceReply HOT 2
- how to send message with entities ?
- 悬赏求定制telegrambot
- Внезапно перестали работать БОТы HOT 2
- Как получить ID отправленного сообщения и ID чата HOT 8
- Need up setting up HOT 5
- delete_message
- Support BOT API 7.0 (december 29 2023)
- Support BOT API 7.1 (february 16 2024)
- Support BOT API 7.2 (march 31, 2024)
- Add a Compatibility Table HOT 1
- composer require telegram-bot/api
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.