2025-06-27 11:47:43 +03:00
|
|
|
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
|
|
|
|
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
|
|
|
|
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
|
|
|
|
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
2025-03-06 23:26:18 +03:00
|
|
|
|
2025-06-27 11:47:43 +03:00
|
|
|
File = FunctionParameters["Picture"]; // URL, Path or Binary Data
|
2025-03-06 23:26:18 +03:00
|
|
|
FileName = "photo.jpg";
|
2025-06-27 11:47:43 +03:00
|
|
|
ChatID = FunctionParameters["GreenAPI_TestGroupID"];
|
2025-03-06 23:26:18 +03:00
|
|
|
Description = "File description";
|
|
|
|
|
|
|
|
|
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
|
|
|
|
Result = OPI_GreenAPI.SendFile(AccessParameters, ChatID, File, FileName, Description);
|