1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/examples/GreenMax/SendFileByURL.txt
Vitaly the Alpaca (bot) 63f1e91e4d Main build (Jenkins)
2025-10-26 18:25:49 +03:00

13 lines
587 B
Plaintext
Vendored

ApiUrl = "https://3100.api.green-api.com/v3";
MediaUrl = "https://3100.api.green-api.com/v3";
IdInstance = "31003...";
ApiTokenInstance = "17915d8e0b4b4975a183478da...";
File = "https://hut.openintegrations.dev/test_data/picture.jpg";
FileName = "photo.jpg";
ChatID = 12345678;
Description = "File description";
AccessParameters = OPI_GreenMax.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
Result = OPI_GreenMax.SendFileByURL(AccessParameters, ChatID, File, FileName);