1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-06-20 09:19:27 +02:00
Files
OpenIntegrations/docs/en/examples/GreenAPI/SetProfilePicture.txt
T
Vitaly the Alpaca (bot) bea53c3d59 Main build (Jenkins)
2025-06-27 11:47:43 +03:00

10 lines
515 B
Plaintext
Vendored

ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
Image = FunctionParameters["Picture"]; // URL, Path or Binary Data
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
Result = OPI_GreenAPI.SetProfilePicture(AccessParameters, Image);