diff --git a/cl-telegram-bot.lisp b/cl-telegram-bot.lisp index b4e7216..bca2196 100644 --- a/cl-telegram-bot.lisp +++ b/cl-telegram-bot.lisp @@ -320,7 +320,10 @@ (make-request b "getFile" options))) (defun download-file (b file-id) - "Perform HTTP request to 'name API method with 'options JSON-encoded object." + "Get the path for a file from a file-id (see: get-file) and then + download it. Returns nil if the value of the http response code is + not success (200); otherwise it will returns three values: the + data, the http headers and the exension of the original file" (with-package :cl-telegram-bot (let* ((file-spec (decode (get-file b file-id)))) (with-ok-results (file-spec results)