1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-29 21:57:16 +02:00
Vitaly the Alpaca (bot) 4966c38cd7 Main build (Jenkins)
2024-09-16 19:32:17 +03:00

887 B

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 = "CQACAgIAAx0EcNsaZQACH1Nm4AWSNx6ZJcoBejpN_Ec1CJfL8QACmFIAAlXwAAFLUwNeSR-1iNY2BA";
    Token  = "6129457865:AAFyzNYOAFbu...";

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

<Binary file's binary data>