1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-16 11:38:11 +02:00
OpenIntegrations/docs/en/md/Telegram/Data-retrieval-and-settings/Download-file.md
2024-07-31 21:55:27 +03:00

878 B

sidebar_position
5

Download file

Download file from Telegram servers

Function DownloadFile(Val Token, Val FileID) Export

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

Returns: BinaryData - file's binary data


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

<Binary file's binary data>