2025-10-20 19:41:52 +03:00
|
|
|
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
|
|
|
|
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
|
|
|
|
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
|
|
|
|
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
2025-03-09 22:41:53 +03:00
|
|
|
|
2025-10-20 19:41:52 +03:00
|
|
|
ChatID = FunctionParameters["GreenAPI_TestGroupID"];
|
2025-03-09 22:41:53 +03:00
|
|
|
|
|
|
|
|
Phone = 79001234568;
|
|
|
|
|
Name = "Artem";
|
|
|
|
|
LastName = "Evpatoriysky";
|
|
|
|
|
Patronymic = "Petrovich";
|
|
|
|
|
Company = "Bicycle";
|
|
|
|
|
|
|
|
|
|
Contact = OPI_GreenAPI.GetContactDescription(Phone, Name, LastName, Patronymic, Company);
|
|
|
|
|
|
|
|
|
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
|
|
|
|
Result = OPI_GreenAPI.SendContact(AccessParameters, ChatID, Contact);
|