You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +02:00
13 lines
673 B
Plaintext
Vendored
13 lines
673 B
Plaintext
Vendored
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
|
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
|
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
|
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
|
|
|
File = FunctionParameters["Picture"]; // URL, Path or Binary Data
|
|
FileName = "photo.jpg";
|
|
ChatID = FunctionParameters["GreenAPI_TestGroupID"];
|
|
Description = "File description";
|
|
|
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
|
Result = OPI_GreenAPI.SendFile(AccessParameters, ChatID, File, FileName, Description);
|