You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-06-18 05:04:13 +02:00
13 lines
650 B
Plaintext
Vendored
13 lines
650 B
Plaintext
Vendored
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
|
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
|
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
|
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
|
|
|
File = FunctionParameters["Picture"];
|
|
FileName = "photo.jpg";
|
|
ChatID = FunctionParameters["GreenAPI_TestGroupID"];
|
|
Description = "File description";
|
|
|
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
|
Result = OPI_GreenAPI.SendFileByURL(AccessParameters, ChatID, File, FileName, Description);
|