1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-18 09:51:28 +02:00
Files
OpenIntegrations/docs/en/examples/AdvancedCall/BackgroundCall.txt
T
Vitaly the Alpaca (bot) bf5a65b85b Main build (Jenkins)
2026-05-10 17:34:24 +03:00

40 lines
1.1 KiB
Plaintext
Vendored

Token = "6129457865:AAFyzNYOAFbu...";
FileID = "CQACAgIAAx0EcNsaZQACWBFpBJl6nDHeih2m1CcGUJUTUMBewwACt4IAAmBxKUhCDKl_dJD1TjYE";
Parameters = New Array;
Parameters.Add(Token);
Settings = New Structure("adv_response, dontwait"
, True
, True);
Result = OPI_AdvancedCall.CallWithSettings("OPI_Telegram"
, "GetBotInformation"
, Parameters
, Settings);
OPI_TestDataRetrieval.Process(Result, "Core", "BackgroundCall");
Parameters = New Array;
Parameters.Add(Token);
Parameters.Add(FileID);
Settings = New Structure("dontwait", True);
Result = OPI_AdvancedCall.CallWithSettings("OPI_Telegram"
, "DownloadFile"
, Parameters
, Settings);
OPI_TestDataRetrieval.Process(Result, "Core", "BackgroundCall", "BDReturn");
Settings = New Structure("adv_response, dontwait"
, True
, True);
Result = OPI_AdvancedCall.CallWithSettings("OPI_Telegram"
, "DownloadFile"
, Parameters
, Settings);
OPI_TestDataRetrieval.Process(Result, "Core", "BackgroundCall", "DBStructReturn");