1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/md/Telegram/Data-retrieval-and-settings/Download-file.md
Vitaly the Alpaca (bot) 84c888cfd0 Main build (Jenkins)
2024-09-25 20:45:54 +03:00

885 B

sidebar_position
sidebar_position
5

Download file

Download file from Telegram servers

Function DownloadFile(Val Token, Val FileID) Export

Parameter CLI option Type Description
Token --token String Token
FileID --fileid String File ID for downloading

Returns: BinaryData - file's binary data


    FileID = "CQACAgIAAx0EcNsaZQACIddm9EV1lD73J6igOmZkEuKUt1TTEQACamQAAgguoUs67b2L3FD4jjYE";
    Token  = "6129457865:AAFyzNYOAFbu...";

    Result = OPI_Telegram.DownloadFile(Token, FileID);
    
  oint telegram DownloadFile --token "6129457865:AAFyzNYOAFbu..." --fileid "CQACAgIAAx0EcNsaZQACGsRmqTObImcQhvZfQC9f7KStfGzIWwACJFYAAjcMSUk5-shFORxZRjUE"

<Binary file's binary data>