1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-04 20:54:02 +02:00
Files
OpenIntegrations/docs/en/examples/GreenAPI/SendTextMessage.txt
T
Vitaly the Alpaca (bot) c666f4e470 Main build (Jenkins)
2026-02-10 22:03:20 +03:00

21 lines
825 B
Plaintext
Vendored

ApiUrl = "https://7105.api.greenapi.com";
MediaUrl = "https://7105.media.greenapi.com";
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
ChatID = "120363410406221140@g.us";
Text = "New message";
Options = New Structure;
Options.Insert("api" , ApiUrl);
Options.Insert("media", MediaUrl);
Options.Insert("id" , IdInstance);
Options.Insert("token", ApiTokenInstance);
AccessParameters = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "FormAccessParameters", Options);
Options = New Structure;
Options.Insert("access", AccessParameters);
Options.Insert("chat" , ChatID);
Options.Insert("text" , Text);
Result = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "SendTextMessage", Options);