Support to call API file enpoint #268
JuanKman94
started this conversation in
Ideas
Replies: 1 comment
-
Proposed implementation in #269 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Has there been a discussion about adding support for the file method?
Telegram::Bot::Api already supports getFile so adding a method to download the file afterwards makes sense. Looking at the code I was thinking of two low-hanging solutions that can be implemented:
#file
methodIMO option 1 makes for messier code as the caller would need to do something like this to build the URL.
While adding a specific method would let
Telegram::Bot::Api
do the setup and the caller would have a nice interface. Maybe something like this:If maintainers are busy I can get a PR up.
Beta Was this translation helpful? Give feedback.
All reactions