Skip to content

getFile

Sahri Riza Umami edited this page Jun 10, 2017 · 5 revisions

Returns information about a file, offline request.

getFile(file_id)
Option Description
file_id Identifier of the file to get (eg. msg.content_.photo_.sizes_[0].photo_.id_).

Example

  • Returns information about file with id 9.

    getFile(9)

    Response:

    {
      ID = "File",
      id_ = 9,
      path_ = "/home/anu/tdcli.lua/.telegram-cli/data/photo/6188127393781229523.jpg",
      persistent_id_ = "AgADBQAD06cxGxSl4FUbfqkUwe1qFGNQyjIABKHMsF7YDwEFE4sDAAEC",
      size_ = 2651
    }

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally